Browse Source

添加配置文件防止测试覆盖

Lgx 4 years ago
parent
commit
c807e719ff
4 changed files with 48 additions and 4 deletions
  1. 1 1
      UI/src/utils/config1.js
  2. 1 1
      pom.xml
  3. 2 2
      src/main/resources/application.yml
  4. 44 0
      src/main/resources/application_prod.yml

+ 1 - 1
UI/src/utils/config1.js

@@ -31,7 +31,7 @@ module.exports =  {
   WXAPIV5,
   ClientId:'f3ed0d90-3fc8-4eba-b83c-a0cfe54c174d',
   ClientSecret:'78e238b4-c199-49ad-b619-69b6a78959d8',
-  ApplicationKey:'test',
+  ApplicationKey:'wechatcp',
   color:{
     success:'#52c41a',
     warn:'#E6A23C',

+ 1 - 1
pom.xml

@@ -51,7 +51,7 @@
         <dependency>
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
-            <version>1.16.20</version>
+            <version>1.18.12</version>
             <scope>provided</scope>
         </dependency>
 

+ 2 - 2
src/main/resources/application.yml

@@ -16,14 +16,14 @@ foo:
         #        username: cdh
         #        password: CDH360lj#com2019
         #        driver-class-name: com.mysql.jdbc.Driver
-        url: jdbc:sqlserver://127.0.0.1:1433; DatabaseName=qywechattest
+        url: jdbc:sqlserver://219.128.77.86:1433; DatabaseName=qywechattest
         username: test
         password: 360ljtest!
         driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
 
 bar:
     datasource:
-        url: jdbc:sqlserver://172.16.0.40:1433; DatabaseName=YPassport
+        url: jdbc:sqlserver://219.128.77.96:1433; DatabaseName=YPassport
         username: caixukun
         password: cxk@membercenter!@#
         driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver

+ 44 - 0
src/main/resources/application_prod.yml

@@ -0,0 +1,44 @@
+server:
+    port: 7000
+
+logging:
+  level:
+    org.springframework.web: INFO
+    com.liangjiang11.wx.cp: DEBUG
+    me.chanjar.weixin: DEBUG
+
+foo:
+    datasource:
+        #spring.datasource.url = jdbc:mysql://localhost:3306/wechat?useUnicode=true&characterEncoding=utf-8&useSSL=true
+        #spring.datasource.username = root
+        #spring.datasource.password = root
+        #        url: jdbc:mysql://192.168.50.41:3306/wechat?useUnicode=true&characterEncoding=utf-8
+        #        username: cdh
+        #        password: CDH360lj#com2019
+        #        driver-class-name: com.mysql.jdbc.Driver
+        url: jdbc:sqlserver://219.128.77.86:1433; DatabaseName=qywechattest
+        username: test
+        password: 360ljtest!
+        driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
+
+bar:
+    datasource:
+        url: jdbc:sqlserver://219.128.77.96:1433; DatabaseName=YPassport
+        username: caixukun
+        password: cxk@membercenter!@#
+        driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
+wechat:
+  cp:
+    corpId: ww08ba7529fb06a064
+    appConfigs:
+      - agentId: 1000004
+        secret: 3whtB0Z8Px1iQ_9SDs4P65I-5apuuA1lJg4Wv90foIY
+        token: Fh9jrzyLqL1
+        aesKey: 6d7562bCSWGQy5V6fI2RwDWr9jIywr4lzjVPq2Ud2n7
+mybatis-plus:
+    mapper-locations: classpath*:mapper/*Mapper.xml
+    type-aliases-package: java.com.liangjiang11.wx.cp.dao.foo
+    global-config.refresh-mapper: true
+#spring:
+#    aop:
+#        proxy-target-class: true