restful-user-auth/src/main/resources/application.properties

31 lines
1.2 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

spring.application.name=rest-user-auth
# ===============================
# DATABASE CONFIGURATION
# ===============================
# 数据库 URL请替换 your_database_name 为你的数据库名
spring.datasource.url=jdbc:mysql://10.254.100.62:3306/play-auth
# 数据库用户名
spring.datasource.username=enoch
# 数据库密码
spring.datasource.password=enoch@123
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
# ===============================
# JPA / HIBERNATE CONFIGURATION
# ===============================
# 自动更新数据库表结构。在开发时方便,生产环境建议使用 Flyway 或 Liquibase
spring.jpa.hibernate.ddl-auto=update
# 在控制台显示执行的 SQL 语句,便于调试
spring.jpa.show-sql=true
# 格式化显示的 SQL
spring.jpa.properties.hibernate.format_sql=true
# ===============================
# JWT CONFIGURATION
# ===============================
# 用于签发 JWT 的密钥。请务必修改为一个足够长且复杂的字符串,不要在生产环境中泄露
app.jwt.secret=YourSuperSecretKeyForJWTsWhichIsLongAndSecureAbcdAbcdAbcdAbcdAbcdAbcdAbcdAbcdAbcdAbcd
# JWT 的过期时间(毫秒),这里设置为 1 小时
app.jwt.expiration-ms=60000