diff --git a/schleicherhof_pms/pom.xml b/schleicherhof_pms/pom.xml index 0004c063262110ca85e8ac71ab1e3ac6d14c86bf..91fd56ea5f0c613c6bd7fabb5dce19f33e9dd918 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 44dafb465df675c23081dd83e6d1d5e3bd9a85b7..23b8b8736901a2c4416bf4c98be0158d67f4503e 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 035955e63d8fa051090b942f65c0b4643bf888e6..be4456b3481c44618b2b5efc7996946083447f8d 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 +