Bladeren bron

添加测试配置

wuhongshuang 3 jaren geleden
bovenliggende
commit
a4362ec6ef

+ 1 - 8
src/main/resources/bootstrap.properties

@@ -1,22 +1,15 @@
 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://112.74.63.148:49001/eureka/
-#??
-#eureka.client.service-url.defaultZone=http://120.25.151.99:49001/eureka/
-#eureka.client.service-url.defaultZone=@eureka-url@
 #eureka.instance.instance-id=${eureka.instance.hostname}:${server.port}
-#eureka.instance.ip-address=10.241.20.241
+eureka.instance.ip-address=112.74.63.148
 # 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
-#??
-#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

+ 27 - 0
src/main/resources/bootstrap.properties.prod

@@ -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://112.74.63.148:49001/eureka/
+#eureka.instance.instance-id=${eureka.instance.hostname}:${server.port}
+eureka.instance.ip-address=112.74.63.148
+# 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
+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

+ 27 - 0
src/main/resources/bootstrap.properties.sit

@@ -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