init project
This commit is contained in:
118
6.program/wms-gateway/src/main/resources/config/application.yml
Normal file
118
6.program/wms-gateway/src/main/resources/config/application.yml
Normal file
@@ -0,0 +1,118 @@
|
||||
server:
|
||||
port: @gateway.server.port@
|
||||
info:
|
||||
version: @project.version@
|
||||
description: @project.description@
|
||||
name: '@project.name@'
|
||||
|
||||
|
||||
spring:
|
||||
session:
|
||||
store-type: none
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
default-property-inclusion: non_null
|
||||
redis:
|
||||
# cluster:
|
||||
# nodes:
|
||||
# - localhost:6379
|
||||
host: @spring.redis.host@
|
||||
port: @spring.redis.port@
|
||||
password: @spring.redis.password@
|
||||
database: @spring.redis.database@
|
||||
|
||||
#开发工具
|
||||
devtools:
|
||||
remote:
|
||||
secret: @spring.devtools.remote.secret@
|
||||
restart:
|
||||
additional-exclude: config/**
|
||||
livereload:
|
||||
enabled: @spring.devtools.remote.livereload.enabled@
|
||||
|
||||
#配置数据源
|
||||
datasource:
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
url: @spring.datasource.url@
|
||||
username: @spring.datasource.username@
|
||||
password: @spring.datasource.password@
|
||||
hikari:
|
||||
maximum-pool-size: 10
|
||||
minimum-idle: 1
|
||||
|
||||
|
||||
#mybaits-plus配置,修改主键类型,mapper.xml、type 别名等
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:/mapper/*Mapper.xml,classpath*:com/mt/wms/**/mapper/*Mapper.xml
|
||||
#实体扫描,多个package用逗号或者分号分隔
|
||||
typeAliasesPackage: com.mt.wms.core.dal.entity
|
||||
global-config:
|
||||
# 数据库相关配置
|
||||
db-config:
|
||||
#数据库类型
|
||||
db-type: mysql
|
||||
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
|
||||
id-type: assign_id
|
||||
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
|
||||
field-strategy: not_empty
|
||||
#驼峰下划线转换\
|
||||
table-underline: true
|
||||
#数据库大写下划线转换
|
||||
#capital-mode: true
|
||||
#逻辑删除配置
|
||||
logic-delete-value: 0
|
||||
logic-not-delete-value: 1
|
||||
logic-delete-field: valid
|
||||
#刷新mapper 调试神器
|
||||
refresh: true
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
cache-enabled: true
|
||||
|
||||
|
||||
#自定义配置
|
||||
wms:
|
||||
#配置忽略认证鉴权的接口地址,此处配置的地址即不做认证也不做鉴权,因此调用的接口无法获取当前用户信息
|
||||
gateway:
|
||||
ignoreAuths:
|
||||
- /swagger-ui.html*
|
||||
- /swagger-resources*
|
||||
- /webjars/*
|
||||
- /*/v2/api-docs
|
||||
- /doc.html
|
||||
- /favicon.ico
|
||||
- /common/*
|
||||
- /*/logout
|
||||
- /*/login
|
||||
- /*/wechatLogin
|
||||
- /*/mobileLogin
|
||||
|
||||
#公共配置
|
||||
common:
|
||||
uploadPath: @wms.common.uploadPath@
|
||||
webHost: @wms.common.webHost@
|
||||
apiHost: @wms.common.apiHost@
|
||||
#短信配置
|
||||
smschannel: @wms.sms.channel@
|
||||
aliyun:
|
||||
sms:
|
||||
product: @wms.aliyun.sms.product@
|
||||
domain: @wms.aliyun.sms.domain@
|
||||
accessKeyId: @wms.aliyun.sms.accessKeyId@
|
||||
accessKeySecret: @wms.aliyun.sms.accessKeySecret@
|
||||
tencentcloud:
|
||||
secretId: @wms.tencentcloud.secretId@
|
||||
secretKey: @wms.tencentcloud.secretKey@
|
||||
sms:
|
||||
appId: @wms.tencentcloud.sms.appId@
|
||||
appKey: @wms.tencentcloud.sms.appKey@
|
||||
|
||||
#微信配置
|
||||
wechat:
|
||||
mchId: 2020202020
|
||||
mchKey: 2020202020
|
||||
ma:
|
||||
appId: 2020202020
|
||||
appSecret: 2020202020
|
||||
Reference in New Issue
Block a user