优化依赖
This commit is contained in:
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user