init project
This commit is contained in:
7
6.program/wms-gateway/src/main/resources/bootstrap.yml
Normal file
7
6.program/wms-gateway/src/main/resources/bootstrap.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
server:
|
||||
port: @gateway.server.port@
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
active: @profileActive@
|
||||
|
||||
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
|
||||
6
6.program/wms-gateway/src/main/resources/logback.xml
Normal file
6
6.program/wms-gateway/src/main/resources/logback.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml"/>
|
||||
<logger name="com.mt.wms.gateway" level="DEBUG"/>
|
||||
<jmxConfigurator/>
|
||||
</configuration>
|
||||
23
6.program/wms-gateway/src/main/resources/spy.properties
Normal file
23
6.program/wms-gateway/src/main/resources/spy.properties
Normal file
@@ -0,0 +1,23 @@
|
||||
#3.2.1以上使用
|
||||
modulelist=com.baomidou.mybatisplus.extension.p6spy.MybatisPlusLogFactory,com.p6spy.engine.outage.P6OutageFactory
|
||||
# 自定义日志打印
|
||||
logMessageFormat=com.p6spy.engine.spy.appender.CustomLineFormat
|
||||
customLogMessageFormat=%(currentTime) | SQL耗时: %(executionTime) ms | 连接信息: %(category)-%(connectionId) | 执行语句: %(sqlSingleLine)
|
||||
#日志输出到控制台
|
||||
appender=com.baomidou.mybatisplus.extension.p6spy.StdoutLogger
|
||||
# 使用日志系统记录 sql
|
||||
#appender=com.p6spy.engine.spy.appender.Slf4JLogger
|
||||
# 设置 p6spy driver 代理
|
||||
deregisterdrivers=true
|
||||
# 取消JDBC URL前缀
|
||||
useprefix=true
|
||||
# 配置记录 Log 例外,可去掉的结果集有error,info,batch,debug,statement,commit,rollback,result,resultset.
|
||||
excludecategories=info,debug,result,commit,resultset
|
||||
# 日期格式
|
||||
dateformat=yyyy-MM-dd HH:mm:ss
|
||||
# 实际驱动
|
||||
driverlist=com.mysql.jdbc.Driver
|
||||
# 是否开启慢SQL记录
|
||||
outagedetection=true
|
||||
# 慢SQL记录标准 2 秒
|
||||
outagedetectioninterval=2
|
||||
Reference in New Issue
Block a user