88 lines
3.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server.port: 8080
server.contextPath: '/manager'
solon.env: 'dev'
solon:
app:
name: 'solon-manager'
group: 'vip.fuck'
logging:
appender:
console:
level: INFO
file:
name: "log/${solon.app.name}"
level: INFO
solon.dataSources:
master!:
class: "com.zaxxer.hikari.HikariDataSource"
username: root
password: 123456
driverClassName: com.mysql.cj.jdbc.Driver
jdbcUrl: jdbc:mysql://localhost:3306/company_project?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=GMT%2b8
redis:
server: "localhost:6379"
db: 0 #默认为 0可不配置
password: ""
maxTotal: 200 #默认为 200可不配
serializer: 'org.noear.redisx.utils.SerializerJson'
mybatis.master:
typeAliases: #支持包名 或 类名(大写开头 或 *//支持 ** 或 * 占位符
- "vip.fuck.sm.entity"
typeHandlers: #支持包名 或 类名(大写开头 或 *//支持 ** 或 * 占位符
- "vip.fuck.sm.entity.handler"
mappers: #支持包名 或 类名(大写开头 或 *)或 xml.xml结尾//支持 ** 或 * 占位符
- "vip.fuck.sm.mapper.*" #这个表达式同上效果
- "classpath:mapper/${project.database}/**/*.xml,classpath:mapper/*.xml"
- "classpath:mapper/*.xml"
configuration: #扩展配置(要与 MybatisConfiguration 类的属性一一对应)
cacheEnabled: false
mapperVerifyEnabled: false #如果为 true则要求所有 mapper 有 @Mapper 主解
mapUnderscoreToCamelCase: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
globalConfig: #全局配置(要与 GlobalConfig 类的属性一一对应)
banner: true
metaObjectHandler: "vip.fuck.sm.common.config.MetaObjectHandlerConfig"
dbConfig:
logicDeleteField: "deleted"
logicDeleteValue: 1
logicNotDeleteValue: 0
############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: satoken
# token 有效期(单位:秒) 默认30天-1 代表永久有效
timeout: 2592000
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
active-timeout: -1
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token
is-share: true
# token 风格默认可取值uuid、simple-uuid、random-32、random-64、random-128、tik
token-style: uuid
# 是否输出操作日志
is-log: true
knife4j.enable: true
knife4j.basic.enable: true
knife4j.basic.username: admin
knife4j.basic.password: 123456
knife4j.setting.enableOpenApi: false
knife4j.setting.enableSwaggerModels: false
knife4j.setting.enableFooter: false
#使用代码生成模块时 指定要生成的表存在于哪种数据库可选值有【mysql、oracle、sqlServer】
project:
database: mysql
file:
schema: 'http'
contextPath: 'localhost:${server.port}/${server.contextPath}/'
#文件上传目录 绝对路径 末尾不需要加 /
path: 'D:/files' #windows
#path: /data/files #linux