Commit 39c5f60b authored by shiyu's avatar shiyu

druid

parent 1db2670b
......@@ -57,12 +57,12 @@
<artifactId>weixin-java-miniapp</artifactId>
</dependency>
<!-- <dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring-boot-web-starter</artifactId>
</dependency>
-->
<dependency>
<!-- <dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.4.0</version>
......@@ -91,7 +91,7 @@
<artifactId>org.slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependency>-->
<dependency>
<groupId>cn.hutool</groupId>
......
......@@ -81,7 +81,7 @@ public class ShiroConfig {
@Bean
// @DependsOn("lifecycleBeanPostProcessor")
@DependsOn("lifecycleBeanPostProcessor")
public static DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator() {
DefaultAdvisorAutoProxyCreator creator = new DefaultAdvisorAutoProxyCreator();
creator.setProxyTargetClass(true);
......
dts:
# 开发者应该设置成自己的wx相关信息
wx:
app-id: wx3618eab6c8b144af
app-secret: 788559035a21b8a75b0c03f9281d5c0a
mch-id: 1538666666
mch-key: 1538xxxxxx-1538xxxxxx-1538xxxxxx
notify-url: https://test.dtsshop.com/demo/order/dtsNotify
# 商户证书文件路径
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path: xxxxx
#通知相关配置
notify:
mail:
# 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单,sendto 定义邮件接收者,通常为商城运营人员
enable: true
host: smtp.aliyun.com
username: dtsshop@aliyun.com
password: xxx
sendfrom: xxx@aliyun.com
sendto: xxx@qq.com
# 短消息模版通知配置
# 短信息用于通知客户,例如发货短信通知,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
sms:
enable: true
appid: 1400286323
appkey: 223123sade14c129c4ce9a30b5f90ad2c
template:
- name: paySucceed
templateId: 112233
- name: captcha
templateId: 112233
- name: ship
templateId: 112233
- name: refund
templateId: 112233
# 微信模版通知配置
# 微信模版用于通知客户或者运营者,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
wx:
enable: true
template:
- name: paySucceed
templateId: sirUcgTAIQfoIxxxxxx
- name: captcha
templateId: OfBkXh7UILpsDkcxxxxxx
- name: ship
templateId: dqTuWzrmL_wwK-SJsxxxxxx
- name: applyRefund
templateId: lzPHltMpUOiBol7i2Yxxxxxx
- name: refund
templateId: NDy6EpPuu2C9NMUxxxxxx
# 快鸟物流查询配置
express:
enable: true
appId: "xxxxxx"
appKey: "xxxxxx"
vendors:
- code: "HTKY"
name: "百世快递"
- code: "YZBK"
name: "邮政国内标快"
- 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联邦(国际件)"
# 对象存储配置
storage:
# 当前工作的对象存储模式,分别是local、aliyun、tencent、qiniu
active: local
# 本地对象存储配置信息
local:
storagePath: dts/storage
# 这个地方应该是wx模块的WxStorageController的fetch方法对应的地址
address: http://localhost:8080/demo/storage/
# 阿里云对象存储配置信息
aliyun:
endpoint: oss-cn-guangzhou.aliyuncs.com
accessKeyId: 111111
accessKeySecret: xxxxxx
bucketName: dts-shop
# 腾讯对象存储配置信息
# 请参考 https://cloud.tencent.com/document/product/436/6249
tencent:
secretId: 111111
secretKey: xxxxxx
region: xxxxxx
bucketName: dts
# 七牛云对象存储配置信息
qiniu:
endpoint: https://cdn.wanwudezhi.com
accessKey: i1UKfccHt7WG-KC1svRyc13gSPErtv8eLXoSxDJO
secretKey: K61gTdyEYk2B0GSkqZammXlOdabQzoXBfb459P9e
bucketName: portal-cdn
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
spring:
datasource:
druid:
url: jdbc:mysql://pc-bp1l2k9j6ck1gr923.mysql.polardb.rds.aliyuncs.com:3306/quanku?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
username: quanku
password: 3N0W8i0b1Wm35MJ5
initial-size: 10
max-active: 50
min-idle: 10
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
validation-query: SELECT 1 FROM DUAL
test-on-borrow: false
test-on-return: false
test-while-idle: true
time-between-eviction-runs-millis: 60000
filters: stat,wall
redis:
host: r-bp10jnt2nm5gbtdr1t.redis.rds.aliyuncs.com
port: 6379
password: B0lpJwBIgzOc7PKj
database: 0
elasticsearch:
jest:
uris: 172.16.122.190:9200
\ No newline at end of file
dts:
# 开发者应该设置成自己的wx相关信息
wx:
app-id: wx3618eab6c8b144af
app-secret: 1a6e073ad84a1a44b6e882f3995bc400
mch-id: 1538666666
mch-key: 1538xxxxxx-1538xxxxxx-1538xxxxxx
notify-url: https://test.dtsshop.com/demo/order/dtsNotify
# 商户证书文件路径
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path: xxxxx
#通知相关配置
notify:
mail:
# 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单,sendto 定义邮件接收者,通常为商城运营人员
enable: true
host: smtp.aliyun.com
username: dtsshop@aliyun.com
password: xxx
sendfrom: xxx@aliyun.com
sendto: xxx@qq.com
# 短消息模版通知配置
# 短信息用于通知客户,例如发货短信通知,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
sms:
enable: true
appid: 1400286323
appkey: 223123sade14c129c4ce9a30b5f90ad2c
template:
- name: paySucceed
templateId: 112233
- name: captcha
templateId: 112233
- name: ship
templateId: 112233
- name: refund
templateId: 112233
# 微信模版通知配置
# 微信模版用于通知客户或者运营者,注意配置格式;template-name,template-templateId 请参考 NotifyType 枚举值
wx:
enable: true
template:
- name: paySucceed
templateId: sirUcgTAIQfoIxxxxxx
- name: captcha
templateId: OfBkXh7UILpsDkcxxxxxx
- name: ship
templateId: dqTuWzrmL_wwK-SJsxxxxxx
- name: applyRefund
templateId: lzPHltMpUOiBol7i2Yxxxxxx
- name: refund
templateId: NDy6EpPuu2C9NMUxxxxxx
# 快鸟物流查询配置
express:
enable: true
appId: "xxxxxx"
appKey: "xxxxxx"
vendors:
- code: "HTKY"
name: "百世快递"
- code: "YZBK"
name: "邮政国内标快"
- 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联邦(国际件)"
# 对象存储配置
storage:
# 当前工作的对象存储模式,分别是local、aliyun、tencent、qiniu
active: local
# 本地对象存储配置信息
local:
storagePath: dts/storage
# 这个地方应该是wx模块的WxStorageController的fetch方法对应的地址
address: http://localhost:8080/demo/storage/
# 阿里云对象存储配置信息
aliyun:
endpoint: oss-cn-guangzhou.aliyuncs.com
accessKeyId: 111111
accessKeySecret: xxxxxx
bucketName: dts-shop
# 腾讯对象存储配置信息
# 请参考 https://cloud.tencent.com/document/product/436/6249
tencent:
secretId: 111111
secretKey: xxxxxx
region: xxxxxx
bucketName: dts
# 七牛云对象存储配置信息
qiniu:
endpoint: https://cdn.wanwudezhi.com
accessKey: i1UKfccHt7WG-KC1svRyc13gSPErtv8eLXoSxDJO
secretKey: K61gTdyEYk2B0GSkqZammXlOdabQzoXBfb459P9e
bucketName: portal-cdn
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
spring:
datasource:
druid:
url: jdbc:mysql://pc-bp1l2k9j6ck1gr923.mysql.polardb.rds.aliyuncs.com:3306/quanku?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
username: quanku
password: 3N0W8i0b1Wm35MJ5
initial-size: 10
max-active: 50
min-idle: 10
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
validation-query: SELECT 1 FROM DUAL
test-on-borrow: false
test-on-return: false
test-while-idle: true
time-between-eviction-runs-millis: 60000
filters: stat,wall
redis:
host: r-bp1xrb4in3pccqxfat.redis.rds.aliyuncs.com
port: 6379
password: Jyt4gT06qdRZnC1z
database: 0
\ No newline at end of file
......@@ -146,6 +146,7 @@ spring:
time-between-eviction-runs-millis: 60000
filters: stat,wall
redis:
host: r-bp10jnt2nm5gbtdr1t.redis.rds.aliyuncs.com
port: 6379
......
......@@ -8,7 +8,6 @@
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>ch-dao</artifactId>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
......@@ -37,6 +36,20 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-rm-datasource</artifactId>
<version>0.5.2</version>
<exclusions>
<exclusion>
<artifactId>druid</artifactId>
<groupId>com.alibaba</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
......@@ -115,7 +128,18 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<useUniqueVersions>false</useUniqueVersions>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
......
......@@ -24,7 +24,7 @@
<shiro-spring-boot-web-starter.version>1.4.0</shiro-spring-boot-web-starter.version>
<hibernate-validator.version>6.0.15.Final</hibernate-validator.version>
<mysql-connector-java.version>5.1.46</mysql-connector-java.version>
<druid-spring-boot-starter.version>1.2.16</druid-spring-boot-starter.version>
<druid-spring-boot-starter.version>1.1.10</druid-spring-boot-starter.version>
<weixin-java-pay.version>3.3.0</weixin-java-pay.version>
<weixin-java-miniapp.version>3.3.0</weixin-java-miniapp.version>
<qcloudsms.version>1.0.5</qcloudsms.version>
......@@ -61,12 +61,12 @@
<version>${pagehelper-spring-boot-starter.version}</version>
</dependency>
<!-- <dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring-boot-web-starter</artifactId>
<version>${shiro-spring-boot-web-starter.version}</version>
</dependency>
-->
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment