spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/20231110_shiro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
username: root
password: 123456
redis:
host: 192.168.173.232
port: 6379
password: 123456
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
mapper-locations: classpath:mappers/*.xml
global-config:
db-config:
# 基于雪花算法生成id
id-type: assign_id
logic-delete-field: deleted
logic-not-delete-value: 0
logic-delete-value: 1
type-aliases-package: org.star.entity.model
springboot常用yml配置
于 2023-11-11 16:27:18 首次发布