application.properties 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. server.port=8083
  2. server.servlet.context-path=/auth
  3. # 增加请求头大小限制,解决431错误
  4. server.max-http-header-size=32KB
  5. # MySQL Database Configuration
  6. spring.datasource.url=jdbc:mysql://192.168.0.77:3306/liandatugboatmis?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
  7. spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
  8. spring.datasource.username=root
  9. spring.datasource.password=bowin@2023
  10. # JPA Configuration
  11. spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect
  12. spring.jpa.hibernate.ddl-auto=none
  13. spring.jpa.show-sql=true
  14. spring.jpa.properties.hibernate.format_sql=true
  15. # 关闭自动命名转换,使用精确的列名
  16. spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  17. spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
  18. # JWT配置
  19. jwt.secret=your-secret-key-change-in-production
  20. jwt.expiration=86400000
  21. jwt.header=Authorization
  22. # 日志配置
  23. logging.level.com.lianda=DEBUG
  24. logging.level.org.springframework.security=DEBUG
  25. logging.level.org.springframework.web=DEBUG
  26. logging.level.org.hibernate=DEBUG
  27. logging.level.root=INFO
  28. # 开启详细的安全日志
  29. logging.level.org.springframework.security.oauth2=DEBUG
  30. logging.level.org.springframework.security.web.FilterChainProxy=DEBUG
  31. logging.level.org.springframework.boot.autoconfigure.security=DEBUG
  32. # H2 Console (for debugging)
  33. spring.h2.console.enabled=true
  34. spring.h2.console.path=/h2-console