|
@@ -0,0 +1,27 @@
|
|
|
+server.port=49003
|
|
|
+spring.application.name=config-server
|
|
|
+# eureka
|
|
|
+eureka.instance.hostname=config-server
|
|
|
+eureka.instance.prefer-ip-address=true
|
|
|
+eureka.client.service-url.defaultZone=http://120.25.151.99:49001/eureka/
|
|
|
+#eureka.instance.instance-id=${eureka.instance.hostname}:${server.port}
|
|
|
+eureka.instance.ip-address=120.25.151.99
|
|
|
+# config
|
|
|
+spring.profiles.active=jdbc
|
|
|
+spring.cloud.config.server.jdbc.sql=SELECT config_key as KEY, config_value as VALUE from sys_properties where (APPLICATION=? or application='application-default') and PROFILE='default' and LABEL=? and status='1'
|
|
|
+spring.datasource.url=jdbc:mysql://rm-wz995mu26a1479kz0so.mysql.rds.aliyuncs.com:3306/szwl-test
|
|
|
+spring.datasource.username=root
|
|
|
+spring.datasource.password=sunzee@020
|
|
|
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
+
|
|
|
+
|
|
|
+#Log levels (TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF)
|
|
|
+logging.level.root=INFO
|
|
|
+logging.level.org.springframework=INFO
|
|
|
+logging.level.org.springframework.web=INFO
|
|
|
+logging.level.org.mybatis=DEBUG
|
|
|
+logging.level.com.shawn=TRACE
|
|
|
+# File output
|
|
|
+logging.file.max-size=100MB
|
|
|
+logging.file.max-history=30
|
|
|
+logging.file.name=/app/applogs/${spring.application.name}/${spring.application.name}.log
|