refactor application configuration and update user model with new fields

This commit is contained in:
zyh
2025-07-18 18:12:21 +08:00
parent 0a76239544
commit 445e448d55
10 changed files with 164 additions and 20 deletions

View File

@@ -1,15 +1,22 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/chat?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://101.200.154.78:3306/yunda_qa?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
username: root
password: password
# JPA configuration (optional, if you need JPA alongside MyBatis-Flex)
jpa:
show-sql: true
hibernate:
ddl-auto: update
password: mysql_Jt3yzh
# Mail configuration
mail:
host: smtp.gmail.com
port: 587
username: your-email@gmail.com
password: your-app-password
properties:
mail:
smtp:
auth: true
starttls:
enable: true
# MyBatis-Flex configuration
mybatis-flex:
@@ -19,6 +26,15 @@ mybatis-flex:
# Mapper XML location (optional)
mapper-locations: classpath*:mapper/*.xml
# JWT configuration
jwt:
secret: mySecretKeyForJWTTokenGenerationAndValidation
expiration: 86400000 # 24 hours in milliseconds
# App configuration
app:
reset-password-url: http://localhost:3000/reset-password
# Server configuration
server:
port: 8080