From 1f7ce105c74915ccb40cae7f47ce72a05a8172ba Mon Sep 17 00:00:00 2001 From: Johannes Wilhelm <johannes.wilhelm2@stud.th-deg.de> Date: Wed, 24 Jun 2020 15:59:34 +0200 Subject: [PATCH] 5641 Signed-off-by: Johannes Wilhelm <johannes.wilhelm2@stud.th-deg.de> --- schleicherhof_pms/pom.xml | 27 ++++++++----------- .../thd/pms/SchleicherhofPmsApplication.java | 2 ++ .../src/main/resources/application.properties | 3 ++- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/schleicherhof_pms/pom.xml b/schleicherhof_pms/pom.xml index 0004c06..91fd56e 100644 --- a/schleicherhof_pms/pom.xml +++ b/schleicherhof_pms/pom.xml @@ -5,18 +5,16 @@ <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> - <version>2.3.0.RELEASE</version> + <version>2.2.2.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> - <groupId>de.thd.pms</groupId> - <artifactId>schleicherhof_pms</artifactId> + <groupId>com.example</groupId> + <artifactId>accessing-data-mysql</artifactId> <version>0.0.1-SNAPSHOT</version> - <name>schleicherhof_pms</name> - <description>Spring Boot_schleicherhof</description> + <name>accessing-data-mysql</name> + <description>Demo project for Spring Boot</description> <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> </properties> @@ -25,10 +23,6 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> - <dependency> - <groupId>org.springframework.boot</groupId> - <artifactId>spring-boot-starter-thymeleaf</artifactId> - </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> @@ -43,11 +37,12 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> - </dependency> - <dependency> - <groupId>org.javassist</groupId> - <artifactId>javassist</artifactId> - <version>3.25.0-GA</version> + <exclusions> + <exclusion> + <groupId>org.junit.vintage</groupId> + <artifactId>junit-vintage-engine</artifactId> + </exclusion> + </exclusions> </dependency> </dependencies> diff --git a/schleicherhof_pms/src/main/java/de/thd/pms/SchleicherhofPmsApplication.java b/schleicherhof_pms/src/main/java/de/thd/pms/SchleicherhofPmsApplication.java index 44dafb4..23b8b87 100644 --- a/schleicherhof_pms/src/main/java/de/thd/pms/SchleicherhofPmsApplication.java +++ b/schleicherhof_pms/src/main/java/de/thd/pms/SchleicherhofPmsApplication.java @@ -2,9 +2,11 @@ package de.thd.pms; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.ComponentScan; @SpringBootApplication +@ComponentScan({"com.mypackage.controller"}) public class SchleicherhofPmsApplication { public static void main(String[] args) { diff --git a/schleicherhof_pms/src/main/resources/application.properties b/schleicherhof_pms/src/main/resources/application.properties index 035955e..be4456b 100644 --- a/schleicherhof_pms/src/main/resources/application.properties +++ b/schleicherhof_pms/src/main/resources/application.properties @@ -2,5 +2,6 @@ spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/schleicherhof_pms spring.datasource.username=root spring.datasource.password=password -spring.datasource.driver-class-name=com.mysql.jdbc.Driver +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver + -- GitLab