zxy 3 years ago
parent
commit
a092341b66

+ 1 - 1
src/main/java/com/example/Thread/ThreadRunnable.java

@@ -32,7 +32,7 @@ class ThreadRun implements Runnable {
32
 class ProxyTest implements Runnable {
32
 class ProxyTest implements Runnable {
33
     @Override
33
     @Override
34
     public void run() {
34
     public void run() {
35
-        System.out.println("proxyTest---" + Thread.currentThread().getName());
35
+        System.out.println("proxyTest11---" + Thread.currentThread().getName());
36
     }
36
     }
37
 }
37
 }
38
 // 代理模式,可以把它当成是Thread 类
38
 // 代理模式,可以把它当成是Thread 类

+ 1 - 1
src/main/resources/application-dev.yml

@@ -18,7 +18,7 @@ spring:
18
         login-username: zxy
18
         login-username: zxy
19
         login-password: 123456
19
         login-password: 123456
20
       driver-class-name: com.mysql.cj.jdbc.Driver
20
       driver-class-name: com.mysql.cj.jdbc.Driver
21
-      url: jdbc:mysql://localhost:3306/ceshi?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
21
+      url: jdbc:mysql://192.168.0.201:3306/ceshi?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
22
       username: root
22
       username: root
23
       password:
23
       password:
24
   jpa:
24
   jpa: