- 集成依赖管理配置文件 libs.versions.toml,统一管理项目依赖版本 - 实现演示 API 接口定义,包含登录、注册、用户管理等 RESTful 端点 - 创建认证仓库 AuthRepository,处理用户会话管理和加密存储 - 开发登录和注册界面,实现用户身份验证流程 - 构建聊天界面 ChatScreen,支持消息收发和历史记录显示 - 实现联系人管理功能,包含好友搜索和添加删除操作 - 添加会话列表界面,展示最近聊天记录和未读消息提示
86 行
1.8 KiB
YAML
86 行
1.8 KiB
YAML
server:
|
|
port: 8081
|
|
|
|
spring:
|
|
application:
|
|
name: tenant-service
|
|
datasource:
|
|
url: jdbc:mysql://39.107.53.187:3306/xuqm_tenant?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
|
|
username: xuqm
|
|
password: Xuqm@2026
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
hikari:
|
|
minimum-idle: 5
|
|
maximum-pool-size: 20
|
|
connection-timeout: 30000
|
|
idle-timeout: 300000
|
|
max-lifetime: 900000
|
|
jpa:
|
|
hibernate:
|
|
ddl-auto: update
|
|
show-sql: false
|
|
properties:
|
|
hibernate:
|
|
dialect: org.hibernate.dialect.MySQLDialect
|
|
format_sql: true
|
|
data:
|
|
redis:
|
|
host: redisdev.xuqinmin.com
|
|
port: 6379
|
|
password: xuqinmin1022
|
|
database: 1
|
|
timeout: 10s
|
|
lettuce:
|
|
pool:
|
|
min-idle: 0
|
|
max-idle: 8
|
|
max-active: 8
|
|
mail:
|
|
host: smtp.sina.com
|
|
port: 465
|
|
username: xuqinmin12@sina.com
|
|
password: b90335654901c9e9
|
|
properties:
|
|
mail:
|
|
smtp:
|
|
auth: true
|
|
ssl:
|
|
enable: true
|
|
starttls:
|
|
enable: false
|
|
jackson:
|
|
time-zone: UTC
|
|
serialization:
|
|
write-dates-as-timestamps: false
|
|
|
|
jwt:
|
|
secret: ${XUQM_JWT_SECRET:xuqm-tenant-service-secret-key-must-be-at-least-256-bits-long-for-hmac}
|
|
expiration: 86400000
|
|
|
|
captcha:
|
|
expire-seconds: 300
|
|
|
|
email-verify:
|
|
expire-seconds: 600
|
|
sub-account-token-hours: 24
|
|
|
|
ops:
|
|
admin:
|
|
username: admin
|
|
password: Admin@123456
|
|
|
|
logging:
|
|
level:
|
|
com.xuqm: DEBUG
|
|
|
|
management:
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: health,info
|
|
|
|
sdk:
|
|
im-ws-url: ${SDK_IM_WS_URL:wss://dev.xuqinmin.com/ws/im}
|
|
file-service-url: ${SDK_FILE_SERVICE_URL:https://dev.xuqinmin.com}
|
|
im-api-url: ${SDK_IM_API_URL:https://dev.xuqinmin.com}
|