application.properties

时间:2024-10-10 08:06:49
#MySQL
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/legal_system?characterEncoding=utf8
spring.datasource.username=XXX
spring.datasource.password=XXX
## 是否自动建表
spring.jpa.properties.hibernate.hbm2ddl.auto=update
#是否打印sql
spring.jpa.show-sql=true
#没有这个不能再IDE中启动
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8
spring.jackson.serialization.write-dates-as-timestamps=false #redis
spring.redis.host=192.168.31.87
spring.redis.port=6379
#配置静态页面地址
#spring.thymeleaf.prefix=file:./static/
spring.thymeleaf.prefix=classpath:static/
spring.thymeleaf.suffix=.html
#html的热部署,也就是修改了html后不用重启,刷新页面就能看到效果。修改完html后一定要ctrl+f9重新build一下
spring.thymeleaf.cache=false
spring.thymeleaf.mode = LEGACYHTML5
debug = false #日志配置
logging.file=./logs/legal.log
logging.level.root=warn
logging.level.com.project.legal=debug
#上传文件大小限制
spring.http.multipart.max-file-size=100Mb
spring.http.multipart.max-request-size=500Mb