删除无用模块启动类,调整配置

This commit is contained in:
chenbo 2020-06-20 20:33:50 +08:00
parent 0a369735d9
commit 678a4f8e6e
7 changed files with 66 additions and 98 deletions

View File

@ -6,8 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication(scanBasePackages = { "com.qiguliuxing.dts.db", "com.qiguliuxing.dts.core", @SpringBootApplication(scanBasePackages = { "com.qiguliuxing.dts.db", "com.qiguliuxing.dts.core","com.qiguliuxing.dts.admin" })
"com.qiguliuxing.dts.admin" })
@MapperScan({ "com.qiguliuxing.dts.db.dao", "com.qiguliuxing.dts.db.dao.ex" }) @MapperScan({ "com.qiguliuxing.dts.db.dao", "com.qiguliuxing.dts.db.dao.ex" })
@EnableTransactionManagement @EnableTransactionManagement
@EnableScheduling @EnableScheduling

View File

@ -1,15 +0,0 @@
package com.qiguliuxing.dts.core;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = { "com.qiguliuxing.dts.db", "com.qiguliuxing.dts.core" })
@MapperScan("com.qiguliuxing.dts.db.dao")
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}

View File

@ -1,16 +1,16 @@
dts: dts:
# 开发者应该设置成自己的wx相关信息 # 开发者应该设置成自己的wx相关信息
wx: wx:
app-id: xxxx app-id: wx4901b319ace4f88a
app-secret: xxx app-secret: 45bae4a701e7ec35bca38fdedxxxxxx
mch-id: xxxx mch-id: 1538666666
mch-key: xxxx mch-key: 1538xxxxxx-1538xxxxxx-1538xxxxxx
notify-url: https://test.dtsshop.com/demo/order/dtsNotify notify-url: https://test.dtsshop.com/demo/order/dtsNotify
# 商户证书文件路径 # 商户证书文件路径
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3 # 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3
key-path: xxxxx key-path: xxxxx
#通知相关配置 #通知相关配置
notify: notify:
mail: mail:
# 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单sendto 定义邮件接收者,通常为商城运营人员 # 邮件通知配置,邮箱一般用于接收业务通知例如收到新的订单sendto 定义邮件接收者,通常为商城运营人员
@ -25,33 +25,33 @@ dts:
# 短信息用于通知客户例如发货短信通知注意配置格式template-nametemplate-templateId 请参考 NotifyType 枚举值 # 短信息用于通知客户例如发货短信通知注意配置格式template-nametemplate-templateId 请参考 NotifyType 枚举值
sms: sms:
enable: true enable: true
appid: xxx appid: 1400286323
appkey: xxx appkey: 223123sade14c129c4ce9a30b5f90ad2c
template: template:
- name: paySucceed - name: paySucceed
templateId: 112233 templateId: 112233
- name: captcha - name: captcha
templateId: 112233 templateId: 112233
- name: ship - name: ship
templateId: 112233 templateId: 112233
- name: refund - name: refund
templateId: 112233 templateId: 112233
# 微信模版通知配置 # 微信模版通知配置
# 微信模版用于通知客户或者运营者注意配置格式template-nametemplate-templateId 请参考 NotifyType 枚举值 # 微信模版用于通知客户或者运营者注意配置格式template-nametemplate-templateId 请参考 NotifyType 枚举值
wx: wx:
enable: true enable: true
template: template:
- name: paySucceed - name: paySucceed
templateId: sirUcgTAIQfoIxxxxxx templateId: sirUcgTAIQfoIxxxxxx
- name: captcha - name: captcha
templateId: OfBkXh7UILpsDkcxxxxxx templateId: OfBkXh7UILpsDkcxxxxxx
- name: ship - name: ship
templateId: dqTuWzrmL_wwK-SJsxxxxxx templateId: dqTuWzrmL_wwK-SJsxxxxxx
- name: applyRefund - name: applyRefund
templateId: lzPHltMpUOiBol7i2Yxxxxxx templateId: lzPHltMpUOiBol7i2Yxxxxxx
- name: refund - name: refund
templateId: NDy6EpPuu2C9NMUxxxxxx templateId: NDy6EpPuu2C9NMUxxxxxx
# 快鸟物流查询配置 # 快鸟物流查询配置
express: express:
@ -59,36 +59,36 @@ dts:
appId: "xxxxxx" appId: "xxxxxx"
appKey: "xxxxxx" appKey: "xxxxxx"
vendors: vendors:
- code: "HTKY" - code: "HTKY"
name: "百世快递" name: "百世快递"
- code: "YZBK" - code: "YZBK"
name: "邮政国内标快" name: "邮政国内标快"
- code: "ZTO" - code: "ZTO"
name: "中通快递" name: "中通快递"
- code: "YTO" - code: "YTO"
name: "圆通速递" name: "圆通速递"
- code: "YD" - code: "YD"
name: "韵达速递" name: "韵达速递"
- code: "YZPY" - code: "YZPY"
name: "邮政快递包裹" name: "邮政快递包裹"
- code: "EMS" - code: "EMS"
name: "EMS" name: "EMS"
- code: "DBL" - code: "DBL"
name: "德邦快递" name: "德邦快递"
- code: "FAST" - code: "FAST"
name: "快捷快递" name: "快捷快递"
- code: "ZJS" - code: "ZJS"
name: "宅急送" name: "宅急送"
- code: "TNT" - code: "TNT"
name: "TNT快递" name: "TNT快递"
- code: "UPS" - code: "UPS"
name: "UPS" name: "UPS"
- code: "DHL" - code: "DHL"
name: "DHL" name: "DHL"
- code: "FEDEX" - code: "FEDEX"
name: "FEDEX联邦(国内件)" name: "FEDEX联邦(国内件)"
- code: "FEDEX_GJ" - code: "FEDEX_GJ"
name: "FEDEX联邦(国际件)" name: "FEDEX联邦(国际件)"
# 对象存储配置 # 对象存储配置
storage: storage:
@ -128,10 +128,10 @@ pagehelper:
spring: spring:
datasource: datasource:
druid: druid:
url: jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false url: jdbc:mysql://localhost:3306/dts-demo?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
username: root username: root
password: 123456 password: Ab888888
initial-size: 10 initial-size: 10
max-active: 50 max-active: 50
min-idle: 10 min-idle: 10

View File

@ -1,10 +1,10 @@
dts: dts:
# 开发者应该设置成自己的wx相关信息 # 开发者应该设置成自己的wx相关信息
wx: wx:
app-id: xxxx app-id: wx4901b319ace4f88a
app-secret: xxx app-secret: 45bae4a701e7ec35bca38fdedxxxxxx
mch-id: xxxx mch-id: 1538666666
mch-key: xxxx mch-key: 1538xxxxxx-1538xxxxxx-1538xxxxxx
notify-url: https://test.dtsshop.com/demo/order/dtsNotify notify-url: https://test.dtsshop.com/demo/order/dtsNotify
# 商户证书文件路径 # 商户证书文件路径
# 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3 # 请参考“商户证书”一节 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=4_3

View File

@ -43,9 +43,9 @@
<!--数据库连接信息--> <!--数据库连接信息-->
<jdbcConnection driverClass="com.mysql.jdbc.Driver" <jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/demo-shop?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=UTC&amp;verifyServerCertificate=false&amp;useSSL=false" connectionURL="jdbc:mysql://localhost:3306/dts-demo?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=UTC&amp;verifyServerCertificate=false&amp;useSSL=false"
userId="root" userId="root"
password="123456"/> password="Ab888888"/>
<javaTypeResolver> <javaTypeResolver>
<property name="useJSR310Types" value="true"/> <property name="useJSR310Types" value="true"/>

View File

@ -1,15 +0,0 @@
package com.qiguliuxing.dts.dao.app;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = { "com.qiguliuxing.dts.db" })
@MapperScan("com.qiguliuxing.dts.db.dao")
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}

View File

@ -12,8 +12,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
* @author CHENBO * @author CHENBO
* @QQ:623659388 * @QQ:623659388
*/ */
@SpringBootApplication(scanBasePackages = { "com.qiguliuxing.dts.db", "com.qiguliuxing.dts.core", @SpringBootApplication(scanBasePackages = { "com.qiguliuxing.dts.db", "com.qiguliuxing.dts.core","com.qiguliuxing.dts.wx" })
"com.qiguliuxing.dts.wx" })
@MapperScan({ "com.qiguliuxing.dts.db.dao", "com.qiguliuxing.dts.db.dao.ex" }) @MapperScan({ "com.qiguliuxing.dts.db.dao", "com.qiguliuxing.dts.db.dao.ex" })
@EnableTransactionManagement @EnableTransactionManagement
@EnableScheduling @EnableScheduling