mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-29 03:28:00 +08:00
update订单逻辑改造工厂模式
This commit is contained in:
@@ -40,7 +40,7 @@ spring:
|
|||||||
username: jsowell_dev
|
username: jsowell_dev
|
||||||
#url: jdbc:mysql://121.40.174.65:3306/jsowell_prd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
#url: jdbc:mysql://121.40.174.65:3306/jsowell_prd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
#username: jsowell
|
#username: jsowell
|
||||||
password: js@160829
|
password: 123456
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
# 从数据源开关/默认关闭
|
# 从数据源开关/默认关闭
|
||||||
|
|||||||
@@ -5,11 +5,9 @@ import com.jsowell.wxpay.common.WeChatPayParameter;
|
|||||||
import com.jsowell.wxpay.utils.WechatPayUtils;
|
import com.jsowell.wxpay.utils.WechatPayUtils;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.boot.CommandLineRunner;
|
import org.springframework.boot.CommandLineRunner;
|
||||||
import org.springframework.core.annotation.Order;
|
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Order(value = 2)
|
// @Order(value = 2)
|
||||||
@Component
|
// @Component
|
||||||
public class WechatPayConfig implements CommandLineRunner {
|
public class WechatPayConfig implements CommandLineRunner {
|
||||||
/**
|
/**
|
||||||
* 公众号appid
|
* 公众号appid
|
||||||
|
|||||||
@@ -2,9 +2,8 @@ package com.jsowell.wxpay.config;
|
|||||||
|
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
// @Component
|
||||||
public class WeixinLoginProperties implements InitializingBean {
|
public class WeixinLoginProperties implements InitializingBean {
|
||||||
|
|
||||||
@Value("${weixin.login.gateway}")
|
@Value("${weixin.login.gateway}")
|
||||||
|
|||||||
Reference in New Issue
Block a user