Compare commits
5 Commits
cbcd62bdf3
...
3f88319d7f
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f88319d7f | |||
| 5c288fda2b | |||
| 04cf2e67b4 | |||
| c2bd870e7c | |||
| 95d4ed47ee |
1
pom.xml
1
pom.xml
@@ -59,7 +59,6 @@
|
|||||||
<artifactId>mysql-connector-j</artifactId>
|
<artifactId>mysql-connector-j</artifactId>
|
||||||
<version>8.1.0</version>
|
<version>8.1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
9
src/main/resources/application-prod.yml
Normal file
9
src/main/resources/application-prod.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
custom:
|
||||||
|
phoneNumber: "18281561650"
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
url: jdbc:mysql://42.193.20.110:8006/qywechatpush?useSSL=false
|
||||||
|
username: qywechatpush
|
||||||
|
password: JSckhtke1wFdzq3E
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
mybatis-plus:
|
||||||
9
src/main/resources/application-test.yml
Normal file
9
src/main/resources/application-test.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
custom:
|
||||||
|
phoneNumber: "18281561650"
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
url: jdbc:mysql://42.193.20.110:8006/qywechatpush?useSSL=false
|
||||||
|
username: qywechatpush
|
||||||
|
password: JSckhtke1wFdzq3E
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
mybatis-plus:
|
||||||
19
src/main/resources/logback.xml
Normal file
19
src/main/resources/logback.xml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<configuration>
|
||||||
|
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
||||||
|
<file>logs/wePush.log</file>
|
||||||
|
<encoder>
|
||||||
|
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="STDOUT"/>
|
||||||
|
<appender-ref ref="FILE"/>
|
||||||
|
</root>
|
||||||
|
</configuration>
|
||||||
@@ -2,10 +2,12 @@ package com.kimgo.wepush;
|
|||||||
|
|
||||||
import com.kimgo.wepush.service.QyWeChatURLService;
|
import com.kimgo.wepush.service.QyWeChatURLService;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
public class QyWeChatURLServiceTest {
|
public class QyWeChatURLServiceTest {
|
||||||
|
@Autowired
|
||||||
private QyWeChatURLService qyWeChatURLService;
|
private QyWeChatURLService qyWeChatURLService;
|
||||||
@Test
|
@Test
|
||||||
public void testUpdateAccessToken(){
|
public void testUpdateAccessToken(){
|
||||||
|
|||||||
Reference in New Issue
Block a user