Ver código fonte

:recycle: 重构代码

冷冷 7 anos atrás
pai
commit
a0a874be9c

+ 2 - 2
pigx-config/src/main/resources/config/pigx-daemon-dev.yml

@@ -5,11 +5,11 @@ spring:
     driver-class-name: com.mysql.jdbc.Driver
     username: root
     password: root
-    url: jdbc:mysql://114.116.45.246:13306/pigx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
+    url: jdbc:mysql://127.0.0.1:3306/pigx?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
   elasticjob:
     # 分布式任务协调依赖zookeeper
     zookeeper:
-      server-lists: 139.224.200.249:2181
+      server-lists: 127.0.0.1:2181
       namespace: pigx-daemon
     # 普通任务
     simples:

+ 1 - 1
pigx-eureka/src/main/java/com/pig4cloud/pigx/eureka/security/WebSecurityConfig.java

@@ -32,7 +32,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
 	protected void configure(HttpSecurity http) throws Exception {
 		http.csrf().disable()
 			.authorizeRequests()
-			.antMatchers("actuator/**").permitAll()
+			.antMatchers("/actuator/**").permitAll()
 			.anyRequest()
 			.authenticated().and().httpBasic();
 	}

+ 6 - 0
pigx-eureka/src/main/resources/bootstrap.yml

@@ -8,6 +8,12 @@ spring:
       password: pig
   application:
     name: pigx-eureka
+  boot:
+    admin:
+      client:
+        url: http://localhost:5001
+        instance:
+          name: PIGX-EUREKA
 
 # docker-compose部署时候 hostname 换成pigx-eureka
 # 类似的 redis 使用pigx-redis ,gateway 换成 pigx-gateway

+ 1 - 1
pigx-visual/pigx-monitor/src/main/resources/bootstrap.yml

@@ -3,7 +3,7 @@ server:
 
 spring:
   application:
-    name: pigx-daemon
+    name: pigx-monitor
   #配置中心
   cloud:
     config: