diff --git a/pom.xml b/pom.xml index a70779d..7f7a1fe 100644 --- a/pom.xml +++ b/pom.xml @@ -129,6 +129,15 @@ + + + org.apache.maven.plugins + maven-resources-plugin + 3.3.1 + + UTF-8 + + src/main/java diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 1017710..d0d23ad 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -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 diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 6a87177..19d30bc 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -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