Sfoglia il codice sorgente

修改公众号信息

Yansen 1 anno fa
parent
commit
b3f3e264f0

+ 2
- 1
pom.xml Vedi File

10
 	</parent>
10
 	</parent>
11
 	<groupId>com.example</groupId>
11
 	<groupId>com.example</groupId>
12
 	<artifactId>zijincao</artifactId>
12
 	<artifactId>zijincao</artifactId>
13
-	<version>0.0.2</version>
13
+	<version>0.0.3</version>
14
 	<name>zijincao</name>
14
 	<name>zijincao</name>
15
 	<description>Demo project for Spring Boot</description>
15
 	<description>Demo project for Spring Boot</description>
16
 	<properties>
16
 	<properties>
43
 			<artifactId>weixin-java-mp</artifactId>
43
 			<artifactId>weixin-java-mp</artifactId>
44
 			<version>4.3.0</version>
44
 			<version>4.3.0</version>
45
 		</dependency>
45
 		</dependency>
46
+
46
 		<!--mybatis-plus start-->
47
 		<!--mybatis-plus start-->
47
 		<dependency>
48
 		<dependency>
48
 			<groupId>com.baomidou</groupId>
49
 			<groupId>com.baomidou</groupId>

+ 21
- 0
src/main/java/com/example/zijincao/config/LoggingFilterConfig.java Vedi File

1
+package com.example.zijincao.config;
2
+
3
+import lombok.extern.slf4j.Slf4j;
4
+import org.springframework.context.annotation.Configuration;
5
+
6
+import javax.servlet.*;
7
+import javax.servlet.http.HttpServletRequest;
8
+import java.io.IOException;
9
+
10
+@Slf4j
11
+@Configuration
12
+public class LoggingFilterConfig implements Filter {
13
+    @Override
14
+    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
15
+        HttpServletRequest req = (HttpServletRequest) request;
16
+        log.info("Request URI: [{}] {}", req.getMethod() , req.getRequestURI());
17
+
18
+        // 继续执行
19
+        chain.doFilter(request, response);
20
+    }
21
+}

+ 6
- 3
src/main/resources/application.yml Vedi File

13
       max-file-size: 10MB
13
       max-file-size: 10MB
14
       max-request-size: 50MB
14
       max-request-size: 50MB
15
   datasource:
15
   datasource:
16
-    url: jdbc:mysql://110.40.183.156:3306/zijincao?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
16
+    url: jdbc:mysql://rm-uf6z3z6jq11x653d77o.mysql.rds.aliyuncs.com:3306/zijincao?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
17
+#    url: jdbc:mysql://110.40.183.156:3306/zijincao?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
17
     username: zijincao
18
     username: zijincao
18
     password: zijincao@ABCD1234
19
     password: zijincao@ABCD1234
19
 
20
 
41
       host:
42
       host:
42
       port:
43
       port:
43
     configs:
44
     configs:
44
-      appId: wx5d0c5a7f210d872f
45
-      secret: 1bb19687e2b0f0ce09849fb3988a4b14
45
+#      appId: wx5d0c5a7f210d872f
46
+#      secret: 1bb19687e2b0f0ce09849fb3988a4b14
47
+      appId: wx4f4df173d36091e1
48
+      secret: 2954dc4c847b16bf4485aa6c6fb9e3be
46
       token:
49
       token:
47
       aesKey:
50
       aesKey: