diff --git a/pom.xml b/pom.xml index 0287bc5..3c081ac 100644 --- a/pom.xml +++ b/pom.xml @@ -5,29 +5,28 @@ org.springframework.boot spring-boot-starter-parent - 2.6.2 + 2.6.4 com.xkrs WordAndExcel - 0.0.1-SNAPSHOT + 0.0.1 WordAndExcel Demo project for Spring Boot - 5.19 - 6.1.5.Final - 5.4.20.Final + 6.9 + 6.2.2.Final UTF-8 UTF-8 11 11 11 - 1.2.76 + 1.2.79 2.10.5 2.10.5 - 4.5.2 - 4.4.3 + 4.5.13 + 5.7.21 @@ -93,11 +92,6 @@ hibernate-validator ${hibernate-validator.version} - - org.hibernate - hibernate-spatial - ${hibernate-spatial.version} - com.alibaba fastjson diff --git a/src/main/java/com/xkrs/WordAndExcelApplication.java b/src/main/java/com/xkrs/WordAndExcelApplication.java index d8eb26b..793bc79 100644 --- a/src/main/java/com/xkrs/WordAndExcelApplication.java +++ b/src/main/java/com/xkrs/WordAndExcelApplication.java @@ -8,8 +8,7 @@ import org.springframework.context.annotation.Configuration; @SpringBootApplication //@ComponentScan(basePackages = {"com.xkrs.model.entity", "com.xkrs.controller", "com.xkrs.service"}) -//@ComponentScan("com.xkrs.model.entity") -@Configuration +//@ComponentScan("com.xkrs.model.entity.*") @EntityScan("com.xkrs.model.entity.*") public class WordAndExcelApplication { diff --git a/src/main/java/com/xkrs/model/entity/QcInspectionFileEntity.java b/src/main/java/com/xkrs/model/entity/QcInspectionFileEntity.java index f59d85b..8675063 100644 --- a/src/main/java/com/xkrs/model/entity/QcInspectionFileEntity.java +++ b/src/main/java/com/xkrs/model/entity/QcInspectionFileEntity.java @@ -4,7 +4,7 @@ import javax.persistence.*; import java.io.Serializable; @Entity -@Table(name = "file") +@Table(name = "qc_inspection_file") public class QcInspectionFileEntity implements Serializable { /** diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index bc367ae..dabcc81 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -6,7 +6,7 @@ server.port = 6810 #spring.datasource.password = 123456 #spring.datasource.driverClassName = org.postgresql.Driver -spring.datasource.url = jdbc:mysql://118.24.27.47:3306/data_model?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai +spring.datasource.url = jdbc:mysql://192.168.2.9:3306/data_model?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai spring.datasource.userName = sxy spring.datasource.password = sxy123 spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver @@ -25,7 +25,7 @@ spring.datasource.hikari.validation-timeout = 3000 ## Spring Data JPA 配置 spring.jpa.database = mysql -spring.jpa.database-platform = org.hibernate.dialect.MySQL5InnoDBDialect +spring.jpa.database-platform = org.hibernate.dialect.MySQL8Dialect spring.jpa.show-sql = false # 指定 ddl mode (none, validate, create, create-drop, update) spring.jpa.hibernate.ddl-auto = update