TASK:1. token生成与验证
2. 登录拦截 3. 注册、登录、忘记密码
This commit is contained in:
82
src/main/resources/application-dev.yml
Normal file
82
src/main/resources/application-dev.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
# 服务器配置
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
# Spring Boot 应用配置
|
||||
spring:
|
||||
# 应用基本信息
|
||||
application:
|
||||
name: lanecarford-ai-styling-assistant
|
||||
|
||||
# 数据源配置 - MySQL
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/lanecrawford?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: root
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# HikariCP 连接池配置
|
||||
hikari:
|
||||
maximum-pool-size: 20
|
||||
minimum-idle: 5
|
||||
idle-timeout: 300000
|
||||
max-lifetime: 1200000
|
||||
connection-timeout: 20000
|
||||
|
||||
# redis 配置
|
||||
data:
|
||||
redis:
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
database: 3
|
||||
# password: Aidlab
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 8
|
||||
max-idle: 8
|
||||
min-idle: 0
|
||||
max-wait: 5
|
||||
security:
|
||||
jwtSecret: TXacaath8k63fQMAkfuRk3s5GTZyjRpS
|
||||
jwtTokenHeader: Authorization
|
||||
jwtTokenPrefix: Bearer-
|
||||
jwtExpiration: 604800000
|
||||
|
||||
# MyBatis-Plus 配置
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
logic-delete-field: deleted
|
||||
logic-delete-value: 1
|
||||
logic-not-delete-value: 0
|
||||
mapper-locations: classpath*:/mapper/**/*.xml
|
||||
|
||||
# Swagger 文档配置
|
||||
springdoc:
|
||||
api-docs:
|
||||
path: /api-docs
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
enabled: true
|
||||
|
||||
# MinIO 对象存储配置
|
||||
minio:
|
||||
endpoint: https://www.minio-api.aida.com.hk
|
||||
access-key: admin
|
||||
secret-key: Aidlab123123!
|
||||
bucket-name: lanecarford
|
||||
# 文件访问URL前缀
|
||||
url-prefix: ${minio.endpoint}/${minio.bucket-name}/
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.aida.lanecarford: DEBUG
|
||||
|
||||
tencent:
|
||||
secret-id: AKID52lRwDIBsLaZLtDI9m9LJMAj36wYw50i
|
||||
secret-key: XqujLlywhHfrqcCYfYVHtNgmeIiwxkKf
|
||||
sender: info@aida.com.hk
|
||||
|
||||
Reference in New Issue
Block a user