Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
39c5f60b
Commit
39c5f60b
authored
Jul 18, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
druid
parent
1db2670b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
350 additions
and
13 deletions
+350
-13
ch-admin-api/pom.xml
ch-admin-api/pom.xml
+4
-4
ch-admin-api/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
...i/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
+1
-1
ch-admin-api/src/main/resources/application-dev.yml
ch-admin-api/src/main/resources/application-dev.yml
+158
-0
ch-admin-api/src/main/resources/application-prod.yml
ch-admin-api/src/main/resources/application-prod.yml
+154
-0
ch-core/pom.xml
ch-core/pom.xml
+1
-1
ch-core/src/main/resources/application-dev.yml
ch-core/src/main/resources/application-dev.yml
+1
-0
ch-dao/pom.xml
ch-dao/pom.xml
+28
-4
pom.xml
pom.xml
+3
-3
No files found.
ch-admin-api/pom.xml
View file @
39c5f60b
...
@@ -57,12 +57,12 @@
...
@@ -57,12 +57,12 @@
<artifactId>
weixin-java-miniapp
</artifactId>
<artifactId>
weixin-java-miniapp
</artifactId>
</dependency>
</dependency>
<!--
<dependency>
<dependency>
<groupId>
org.apache.shiro
</groupId>
<groupId>
org.apache.shiro
</groupId>
<artifactId>
shiro-spring-boot-web-starter
</artifactId>
<artifactId>
shiro-spring-boot-web-starter
</artifactId>
</dependency>
</dependency>
-->
<dependency>
<!--
<dependency>
<groupId>org.apache.shiro</groupId>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<artifactId>shiro-spring</artifactId>
<version>1.4.0</version>
<version>1.4.0</version>
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<artifactId>org.slf4j</artifactId>
<artifactId>org.slf4j</artifactId>
</exclusion>
</exclusion>
</exclusions>
</exclusions>
</dependency>
</dependency>
-->
<dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<groupId>
cn.hutool
</groupId>
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/config/ShiroConfig.java
View file @
39c5f60b
...
@@ -81,7 +81,7 @@ public class ShiroConfig {
...
@@ -81,7 +81,7 @@ public class ShiroConfig {
@Bean
@Bean
//
@DependsOn("lifecycleBeanPostProcessor")
@DependsOn
(
"lifecycleBeanPostProcessor"
)
public
static
DefaultAdvisorAutoProxyCreator
defaultAdvisorAutoProxyCreator
()
{
public
static
DefaultAdvisorAutoProxyCreator
defaultAdvisorAutoProxyCreator
()
{
DefaultAdvisorAutoProxyCreator
creator
=
new
DefaultAdvisorAutoProxyCreator
();
DefaultAdvisorAutoProxyCreator
creator
=
new
DefaultAdvisorAutoProxyCreator
();
creator
.
setProxyTargetClass
(
true
);
creator
.
setProxyTargetClass
(
true
);
...
...
ch-admin-api/src/main/resources/application-dev.yml
0 → 100644
View file @
39c5f60b
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
ch-admin-api/src/main/resources/application-prod.yml
0 → 100644
View file @
39c5f60b
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
ch-core/pom.xml
View file @
39c5f60b
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<dependency>
<dependency>
<groupId>
com.wwdz
</groupId>
<groupId>
com.wwdz
</groupId>
<artifactId>
ch-dao
</artifactId>
<artifactId>
ch-dao
</artifactId>
<version>
${project.version}
</version>
<version>
${project.version}
</version>
<exclusions>
<exclusions>
<exclusion>
<exclusion>
<artifactId>
druid
</artifactId>
<artifactId>
druid
</artifactId>
...
...
ch-core/src/main/resources/application-dev.yml
View file @
39c5f60b
...
@@ -146,6 +146,7 @@ spring:
...
@@ -146,6 +146,7 @@ spring:
time-between-eviction-runs-millis
:
60000
time-between-eviction-runs-millis
:
60000
filters
:
stat,wall
filters
:
stat,wall
redis
:
redis
:
host
:
r-bp10jnt2nm5gbtdr1t.redis.rds.aliyuncs.com
host
:
r-bp10jnt2nm5gbtdr1t.redis.rds.aliyuncs.com
port
:
6379
port
:
6379
...
...
ch-dao/pom.xml
View file @
39c5f60b
...
@@ -7,8 +7,7 @@
...
@@ -7,8 +7,7 @@
<artifactId>
coin_handbook
</artifactId>
<artifactId>
coin_handbook
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<version>
0.0.1-SNAPSHOT
</version>
</parent>
</parent>
<artifactId>
ch-dao
</artifactId>
<artifactId>
ch-dao
</artifactId>
<properties>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
</properties>
...
@@ -37,8 +36,22 @@
...
@@ -37,8 +36,22 @@
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid-spring-boot-starter
</artifactId>
<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>
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<artifactId>
fastjson
</artifactId>
...
@@ -115,7 +128,18 @@
...
@@ -115,7 +128,18 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
</plugin>
</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>
</plugins>
</build>
</build>
...
...
pom.xml
View file @
39c5f60b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<shiro-spring-boot-web-starter.version>
1.4.0
</shiro-spring-boot-web-starter.version>
<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>
<hibernate-validator.version>
6.0.15.Final
</hibernate-validator.version>
<mysql-connector-java.version>
5.1.46
</mysql-connector-java.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-pay.version>
3.3.0
</weixin-java-pay.version>
<weixin-java-miniapp.version>
3.3.0
</weixin-java-miniapp.version>
<weixin-java-miniapp.version>
3.3.0
</weixin-java-miniapp.version>
<qcloudsms.version>
1.0.5
</qcloudsms.version>
<qcloudsms.version>
1.0.5
</qcloudsms.version>
...
@@ -61,12 +61,12 @@
...
@@ -61,12 +61,12 @@
<version>
${pagehelper-spring-boot-starter.version}
</version>
<version>
${pagehelper-spring-boot-starter.version}
</version>
</dependency>
</dependency>
<
!-- <
dependency>
<dependency>
<groupId>
org.apache.shiro
</groupId>
<groupId>
org.apache.shiro
</groupId>
<artifactId>
shiro-spring-boot-web-starter
</artifactId>
<artifactId>
shiro-spring-boot-web-starter
</artifactId>
<version>
${shiro-spring-boot-web-starter.version}
</version>
<version>
${shiro-spring-boot-web-starter.version}
</version>
</dependency>
</dependency>
-->
<dependency>
<dependency>
<groupId>
org.hibernate.validator
</groupId>
<groupId>
org.hibernate.validator
</groupId>
<artifactId>
hibernate-validator
</artifactId>
<artifactId>
hibernate-validator
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment