Initial commit: backend code
This commit is contained in:
51
src/main/resources/application.yml
Normal file
51
src/main/resources/application.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: building
|
||||
|
||||
# PostgreSQL数据库配置
|
||||
datasource:
|
||||
driver-class-name: org.postgresql.Driver
|
||||
url: jdbc:postgresql://localhost:5432/building_materials
|
||||
username: postgres
|
||||
password: postgres
|
||||
|
||||
# Redis配置
|
||||
redis:
|
||||
host: localhost
|
||||
port: 6379
|
||||
password:
|
||||
database: 0
|
||||
timeout: 3000ms
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 8
|
||||
max-wait: -1ms
|
||||
max-idle: 8
|
||||
min-idle: 0
|
||||
|
||||
# MyBatis-Plus配置
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: assign_uuid
|
||||
logic-delete-field: status
|
||||
logic-delete-value: 0
|
||||
logic-not-delete-value: 1
|
||||
|
||||
# JWT配置
|
||||
jwt:
|
||||
secret: building-materials-secret-key-2024
|
||||
expiration: 7200000 # 2小时
|
||||
refresh-expiration: 604800000 # 7天
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
com.example.building: debug
|
||||
org.springframework: info
|
||||
Reference in New Issue
Block a user