diff --git a/buisnesslogic/pom.xml b/buisnesslogic/pom.xml index 9c8dcd5..5bd658b 100644 --- a/buisnesslogic/pom.xml +++ b/buisnesslogic/pom.xml @@ -28,6 +28,23 @@ 4.11 test + + + + javax.xml.bind + jaxb-api + 2.3.0 + + + mysql + mysql-connector-java + 8.0.18 + + + org.springframework.boot + spring-boot-starter-data-jpa + + diff --git a/restservice/src/main/java/com/plannaplan/App.java b/restservice/src/main/java/com/plannaplan/App.java index 606c0b3..f2bd26f 100644 --- a/restservice/src/main/java/com/plannaplan/App.java +++ b/restservice/src/main/java/com/plannaplan/App.java @@ -5,6 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class App { + public static void main(String[] args) { System.out.println("Hello World!"); SpringApplication.run(App.class, args); diff --git a/restservice/src/main/resources/application.properties b/restservice/src/main/resources/application.properties index bafddce..84f4fd9 100644 --- a/restservice/src/main/resources/application.properties +++ b/restservice/src/main/resources/application.properties @@ -1 +1,8 @@ -server.port=8081 \ No newline at end of file +spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect +spring.datasource.url=jdbc:mariadb://localhost:3306/test +spring.datasource.username=root +spring.datasource.password=example +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.jpa.hibernate.ddl-auto=create-drop + +server.port=1285 \ No newline at end of file