优化依赖

This commit is contained in:
qdxkrs 2022-02-28 20:40:45 +08:00
parent 9f17a97bbf
commit 3626b4b46a
4 changed files with 11 additions and 18 deletions

20
pom.xml
View File

@ -5,29 +5,28 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.2</version>
<version>2.6.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.xkrs</groupId>
<artifactId>WordAndExcel</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1</version>
<name>WordAndExcel</name>
<description>Demo project for Spring Boot</description>
<properties>
<yauaa.version>5.19</yauaa.version>
<hibernate-validator.version>6.1.5.Final</hibernate-validator.version>
<hibernate-spatial.version>5.4.20.Final</hibernate-spatial.version>
<yauaa.version>6.9</yauaa.version>
<hibernate-validator.version>6.2.2.Final</hibernate-validator.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<fastjson.version>1.2.76</fastjson.version>
<fastjson.version>1.2.79</fastjson.version>
<springfox-swagger-ui.version>2.10.5</springfox-swagger-ui.version>
<springfox-swagger2.version>2.10.5</springfox-swagger2.version>
<httpclient.version>4.5.2</httpclient.version>
<hutool-all.version>4.4.3</hutool-all.version>
<httpclient.version>4.5.13</httpclient.version>
<hutool-all.version>5.7.21</hutool-all.version>
</properties>
<dependencies>
@ -93,11 +92,6 @@
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-spatial</artifactId>
<version>${hibernate-spatial.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>

View File

@ -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 {

View File

@ -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 {
/**

View File

@ -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