duyong 4 vuotta sitten
vanhempi
commit
acfcb370f2
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      src/main/resources/bootstrap.yml
  2. 2 2
      src/main/resources/log4j.properties

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

@@ -23,8 +23,8 @@ server:
   port: ${SERVER_PORT:9004}
 eureka:
   client:
-    fetch-registry: false # 取消从注册中心获取服务信息
-    register-with-eureka: false # 取消注册服务到注册中心
+    #fetch-registry: false # 取消从注册中心获取服务信息
+    #register-with-eureka: false # 取消注册服务到注册中心
     serviceUrl:
       defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
     metadata-map:

+ 2 - 2
src/main/resources/log4j.properties

@@ -1,6 +1,6 @@
 ## LOG4J配置
-#log4j.rootCategory=INFO,stdout,file, RUNNING,errorfile
-log4j.rootCategory=ERROR,file, RUNNING,errorfile 
+log4j.rootCategory=INFO,stdout,file, RUNNING,errorfile
+#log4j.rootCategory=ERROR,file, RUNNING,errorfile 
 ## 控制台输出
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout