feat: support load application yaml
This commit is contained in:
37
build/docker/wfc/modules/gen/conf/default/application.yml
Normal file
37
build/docker/wfc/modules/gen/conf/default/application.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
# spring配置
|
||||
spring:
|
||||
redis:
|
||||
host: wfc-redis
|
||||
port: 6379
|
||||
password:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://wfc-mysql:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: 123456
|
||||
config:
|
||||
import: optional:classpath:application-common.yml
|
||||
|
||||
# mybatis配置
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: org.wfc.gen.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath:mapper/**/*.xml
|
||||
|
||||
# swagger配置
|
||||
swagger:
|
||||
title: 代码生成接口文档
|
||||
license: Powered By wfc
|
||||
licenseUrl: https://wfc.vip
|
||||
|
||||
# 代码生成
|
||||
gen:
|
||||
# 作者
|
||||
author: wfc
|
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: org.wfc.system
|
||||
# 自动去除表前缀,默认是false
|
||||
autoRemovePre: false
|
||||
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
|
||||
tablePrefix: sys_
|
||||
Reference in New Issue
Block a user