- 新增设备实体类 Device 及其对应的数据传输对象 CreateDriveRequest 和 DeviceResponse - 创建设备相关的控制器 DeviceController 并实现新建设备接口 - 实现设备服务接口 DeviceService 及其具体实现类 DeviceServiceImpl - 添加设备数据访问层接口 DeviceMapper - 在数据库初始化脚本中增加设备相关表结构定义,包括设备类型表、设备表和网络接口表 - 更新应用配置文件以激活开发环境配置 - 修复图片上传时获取原始文件名的问题 - 修改用户角色分配相关接口方法命名以提高语义清晰度
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
server:
|
|
port: 18888
|
|
|
|
spring:
|
|
application:
|
|
name: chaos-api
|
|
datasource:
|
|
driver-class-name: org.mariadb.jdbc.Driver
|
|
url: jdbc:mariadb://10.91.3.253:3306/chaos?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false
|
|
username: chaos
|
|
password: fH7NPTeRSSFFicsh
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
druid:
|
|
initial-size: 5
|
|
min-idle: 5
|
|
max-active: 20
|
|
max-wait: 60000
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 100GB
|
|
max-request-size: 100GB
|
|
output:
|
|
ansi:
|
|
enabled: always
|
|
profiles:
|
|
active: dev
|
|
|
|
mybatis-plus:
|
|
mapper-locations: classpath*:/mapper/**/*.xml
|
|
type-aliases-package: cn.nopj.chaos_api_domain.entity
|
|
global-config:
|
|
db-config:
|
|
id-type: auto
|
|
configuration:
|
|
map-underscore-to-camel-case: true
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
jwt:
|
|
tokenHeader: Authorization
|
|
tokenHead: Chaos
|
|
secret: zHANgcHao@1995!20250506
|
|
expiration: 604800
|
|
|
|
auth:
|
|
def-role-code: user
|