update gitigore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,4 +8,3 @@ poster.jpg
|
|||||||
simsunb.ttf
|
simsunb.ttf
|
||||||
spy.log
|
spy.log
|
||||||
Alibaba-PuHuiTi-Regular.otf
|
Alibaba-PuHuiTi-Regular.otf
|
||||||
*/src/main/resources/config/application-prod.yml
|
|
174
yshop-api/src/main/resources/config/application-prod.yml
Normal file
174
yshop-api/src/main/resources/config/application-prod.yml
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
#配置数据源
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
druid:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
|
url: jdbc:log4jdbc:mysql://localhost:3306/yshop?serverTimezone=Asia/Shanghai&useSSL=false
|
||||||
|
username: yshop
|
||||||
|
password:
|
||||||
|
|
||||||
|
# 初始化配置
|
||||||
|
initial-size: 3
|
||||||
|
# 最小连接数
|
||||||
|
min-idle: 3
|
||||||
|
# 最大连接数
|
||||||
|
max-active: 15
|
||||||
|
# 获取连接超时时间
|
||||||
|
max-wait: 5000
|
||||||
|
# 连接有效性检测时间
|
||||||
|
time-between-eviction-runs-millis: 90000
|
||||||
|
# 最大空闲时间
|
||||||
|
min-evictable-idle-time-millis: 1800000
|
||||||
|
test-while-idle: true
|
||||||
|
test-on-borrow: false
|
||||||
|
test-on-return: false
|
||||||
|
validation-query: select 1
|
||||||
|
# 配置监控统计拦截的filters
|
||||||
|
filters: stat
|
||||||
|
|
||||||
|
stat-view-servlet:
|
||||||
|
url-pattern: /druid/*
|
||||||
|
reset-enable: false
|
||||||
|
login-username: admin
|
||||||
|
login-password: 123456
|
||||||
|
|
||||||
|
web-stat-filter:
|
||||||
|
url-pattern: /*
|
||||||
|
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
|
||||||
|
|
||||||
|
#配置 Jpa
|
||||||
|
jpa:
|
||||||
|
hibernate:
|
||||||
|
# 生产环境设置成 none,避免程序运行时自动更新数据库结构
|
||||||
|
ddl-auto: none
|
||||||
|
|
||||||
|
redis:
|
||||||
|
#数据库索引
|
||||||
|
database: 0
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 6379
|
||||||
|
password:
|
||||||
|
#连接超时时间
|
||||||
|
timeout: 5000
|
||||||
|
|
||||||
|
#jwt
|
||||||
|
jwt:
|
||||||
|
header: Authorization
|
||||||
|
secret: JBqNQX7HD9xhwHP7YSHOP
|
||||||
|
# token 过期时间 2个小时
|
||||||
|
expiration: 7200000
|
||||||
|
auth:
|
||||||
|
# 授权路径
|
||||||
|
path: /login
|
||||||
|
# 获取用户信息
|
||||||
|
account: /info
|
||||||
|
|
||||||
|
#是否允许生成代码,生产环境设置为false
|
||||||
|
generator:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
#如果生产环境要开启swagger,需要配置请求地址
|
||||||
|
#springfox:
|
||||||
|
# documentation:
|
||||||
|
# swagger:
|
||||||
|
# v2:
|
||||||
|
# host: # 接口域名或外网ip
|
||||||
|
|
||||||
|
#是否开启 swagger-ui
|
||||||
|
swagger:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# 文件存储路径
|
||||||
|
file:
|
||||||
|
path: /home/yshop/file/
|
||||||
|
avatar: /home/yshop/avatar/
|
||||||
|
# 文件大小 /M
|
||||||
|
maxSize: 100
|
||||||
|
avatarMaxSize: 5
|
||||||
|
localUrl: http://localhost:8000
|
||||||
|
|
||||||
|
yshop:
|
||||||
|
#通知相关配置
|
||||||
|
notify:
|
||||||
|
mail:
|
||||||
|
# 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单,sendto 定义邮件接收者,通常为商城运营人员
|
||||||
|
enable: false
|
||||||
|
host: smtp.exmail.qq.com
|
||||||
|
username: ex@ex.com.cn
|
||||||
|
password: XXXXXXXXXXXXX
|
||||||
|
sendfrom: ex@ex.com.cn
|
||||||
|
sendto: ex@qq.com
|
||||||
|
|
||||||
|
# 短消息模版通知配置
|
||||||
|
# 短信息用于通知客户,例如发货短信通知,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
|
||||||
|
sms:
|
||||||
|
enable: false
|
||||||
|
# 如果是腾讯云短信,则设置active的值tencent
|
||||||
|
# 如果是阿里云短信,则设置active的值aliyun
|
||||||
|
active: tencent
|
||||||
|
sign: litemall
|
||||||
|
template:
|
||||||
|
- name: paySucceed
|
||||||
|
templateId: 156349
|
||||||
|
- name: captcha
|
||||||
|
templateId: 156433
|
||||||
|
- name: ship
|
||||||
|
templateId: 158002
|
||||||
|
- name: refund
|
||||||
|
templateId: 159447
|
||||||
|
tencent:
|
||||||
|
appid: 111111111
|
||||||
|
appkey: xxxxxxxxxxxxxx
|
||||||
|
aliyun:
|
||||||
|
regionId: xxx
|
||||||
|
accessKeyId: xxx
|
||||||
|
accessKeySecret: xxx
|
||||||
|
|
||||||
|
|
||||||
|
# 微信模版通知配置
|
||||||
|
# 微信模版用于通知客户或者运营者,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
|
||||||
|
wx:
|
||||||
|
enable: false
|
||||||
|
template:
|
||||||
|
- name: paySucceed
|
||||||
|
templateId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
- name: captcha
|
||||||
|
templateId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
- name: ship
|
||||||
|
templateId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
- name: refund
|
||||||
|
templateId: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||||
|
|
||||||
|
# 快鸟物流查询配置
|
||||||
|
express:
|
||||||
|
enable: true
|
||||||
|
appId: 1607734
|
||||||
|
appKey:
|
||||||
|
vendors:
|
||||||
|
- code: "ZTO"
|
||||||
|
name: "中通快递"
|
||||||
|
- code: "YTO"
|
||||||
|
name: "圆通速递"
|
||||||
|
- code: "YD"
|
||||||
|
name: "韵达速递"
|
||||||
|
- code: "YZPY"
|
||||||
|
name: "邮政快递包裹"
|
||||||
|
- code: "EMS"
|
||||||
|
name: "EMS"
|
||||||
|
- code: "DBL"
|
||||||
|
name: "德邦快递"
|
||||||
|
- code: "FAST"
|
||||||
|
name: "快捷快递"
|
||||||
|
- code: "ZJS"
|
||||||
|
name: "宅急送"
|
||||||
|
- code: "TNT"
|
||||||
|
name: "TNT快递"
|
||||||
|
- code: "UPS"
|
||||||
|
name: "UPS"
|
||||||
|
- code: "DHL"
|
||||||
|
name: "DHL"
|
||||||
|
- code: "FEDEX"
|
||||||
|
name: "FEDEX联邦(国内件)"
|
||||||
|
- code: "FEDEX_GJ"
|
||||||
|
name: "FEDEX联邦(国际件)"
|
88
yshop-system/src/main/resources/config/application-prod.yml
Normal file
88
yshop-system/src/main/resources/config/application-prod.yml
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
#配置数据源
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
druid:
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
|
url: jdbc:log4jdbc:mysql://localhost:3306/yshop?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
|
||||||
|
username: yshop
|
||||||
|
password:
|
||||||
|
|
||||||
|
# 初始化配置
|
||||||
|
initial-size: 3
|
||||||
|
# 最小连接数
|
||||||
|
min-idle: 3
|
||||||
|
# 最大连接数
|
||||||
|
max-active: 15
|
||||||
|
# 获取连接超时时间
|
||||||
|
max-wait: 5000
|
||||||
|
# 连接有效性检测时间
|
||||||
|
time-between-eviction-runs-millis: 90000
|
||||||
|
# 最大空闲时间
|
||||||
|
min-evictable-idle-time-millis: 1800000
|
||||||
|
test-while-idle: true
|
||||||
|
test-on-borrow: false
|
||||||
|
test-on-return: false
|
||||||
|
validation-query: select 1
|
||||||
|
# 配置监控统计拦截的filters
|
||||||
|
filters: stat
|
||||||
|
|
||||||
|
stat-view-servlet:
|
||||||
|
url-pattern: /druid/*
|
||||||
|
reset-enable: false
|
||||||
|
login-username: admin
|
||||||
|
login-password: 123456
|
||||||
|
|
||||||
|
web-stat-filter:
|
||||||
|
url-pattern: /*
|
||||||
|
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
|
||||||
|
|
||||||
|
#配置 Jpa
|
||||||
|
jpa:
|
||||||
|
hibernate:
|
||||||
|
# 生产环境设置成 none,避免程序运行时自动更新数据库结构
|
||||||
|
ddl-auto: none
|
||||||
|
redis:
|
||||||
|
#数据库索引
|
||||||
|
database: 0
|
||||||
|
host: 127.0.0.1
|
||||||
|
port: 6379
|
||||||
|
password:
|
||||||
|
#连接超时时间
|
||||||
|
timeout: 5000
|
||||||
|
|
||||||
|
#jwt
|
||||||
|
jwt:
|
||||||
|
header: Authorization
|
||||||
|
secret: mySecret
|
||||||
|
# token 过期时间 2个小时
|
||||||
|
expiration: 7200000
|
||||||
|
auth:
|
||||||
|
# 授权路径
|
||||||
|
path: /login
|
||||||
|
# 获取用户信息
|
||||||
|
account: /info
|
||||||
|
|
||||||
|
#是否允许生成代码,生产环境设置为false
|
||||||
|
generator:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
#如果生产环境要开启swagger,需要配置请求地址
|
||||||
|
#springfox:
|
||||||
|
# documentation:
|
||||||
|
# swagger:
|
||||||
|
# v2:
|
||||||
|
# host: # 接口域名或外网ip
|
||||||
|
|
||||||
|
#是否开启 swagger-ui
|
||||||
|
swagger:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# 文件存储路径
|
||||||
|
file:
|
||||||
|
path: /home/yshop/file/
|
||||||
|
avatar: /home/yshop/avatar/
|
||||||
|
# 文件大小 /M
|
||||||
|
maxSize: 100
|
||||||
|
avatarMaxSize: 5
|
||||||
|
localUrl: https://yshopapi.dayouqiantu.cn
|
Reference in New Issue
Block a user