Initial commit: backend code

This commit is contained in:
Agent
2026-03-20 04:59:00 +00:00
commit e7c7f3b174
42 changed files with 2855 additions and 0 deletions

View 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