chore: 更新配置文件及pom.xml编码设置

修改开发环境jwt注释格式
调整生产环境jpa ddl-auto为create
添加maven资源插件UTF-8编码配置
This commit is contained in:
qingfeng1121
2025-12-11 14:48:15 +08:00
parent 51392bf807
commit 505a7a0944
3 changed files with 12 additions and 2 deletions

View File

@@ -29,7 +29,8 @@ spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
# JWT 配置 - 开发用(方便调试,密钥较短,过期时间短)
# ====================================================================
jwt.secret=devSecretKey2024ForLocalDevelopment
jwt.expiration=3600000 # 1小时过期方便调试
jwt.expiration=3600000
# 1小时过期方便调试
jwt.header=Authorization
jwt.token-prefix=Bearer

View File

@@ -24,7 +24,7 @@ spring.datasource.hikari.connection-test-query=SELECT 1
spring.datasource.hikari.pool-name=WebProjectHikariCP
# JPA配置生产环境禁用自动DDL避免意外修改表结构
spring.jpa.hibernate.ddl-auto=none
spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect