Skip to content

Commit

Permalink
调整配置文件,去掉springbootadmin的无用项
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoutaoo committed Oct 20, 2018
1 parent 6df37b0 commit c7edbdf
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 46 deletions.
16 changes: 8 additions & 8 deletions auth/authentication-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ spring:
username: ${POSTGRES_USERNAME:postgres}
password: ${POSTGRES_PASSWORD:postgres}
driver-class-name: org.postgresql.Driver
boot:
admin:
url: http://${BOOT_ADMIN_HOST:localhost}:${BOOT_ADMIN_PORT:8022}

zipkin:
baseUrl: http://localhost:8091
enabled: true
sender:
type: rabbit
sleuth:
sampler:
probability: 1.0

security:
oauth2:
jwt:
Expand All @@ -48,7 +52,3 @@ management:
web:
exposure:
include: '*'

mybatis:
configuration:
map-underscore-to-camel-case: true
4 changes: 0 additions & 4 deletions auth/authentication-server/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@ logging:
path: logs/
file:
max-size: 1GB

mybatis:
configuration:
map-underscore-to-camel-case: true
15 changes: 8 additions & 7 deletions auth/authorization-server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ spring:
username: ${POSTGRES_USERNAME:postgres}
password: ${POSTGRES_PASSWORD:postgres}
driver-class-name: org.postgresql.Driver
boot:
admin:
url: http://${BOOT_ADMIN_HOST:localhost}:${BOOT_ADMIN_PORT:8022}

zipkin:
baseUrl: http://localhost:8091
enabled: true
sender:
type: rabbit
sleuth:
sampler:
probability: 1.0
#jwt的密钥
security:
oauth2:
jwt:
Expand All @@ -50,6 +54,3 @@ management:
exposure:
include: '*'

mybatis:
configuration:
map-underscore-to-camel-case: true
3 changes: 0 additions & 3 deletions auth/authorization-server/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,3 @@ management:
exposure:
include: '*'

mybatis:
configuration:
map-underscore-to-camel-case: true
4 changes: 2 additions & 2 deletions center/eureka/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ spring:
rabbitmq:
host: ${RABBIT_MQ_HOST:localhost}
port: ${RABBIT_MQ_PORT:5672}
username: guest
password: guest
username: ${RABBIT_MQ_USERNAME:guest}
password: ${RABBIT_MQ_PASSWORD:guest}
6 changes: 1 addition & 5 deletions demos/consumer-feign/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ eureka:
spring:
application:
name: feign-consumer
boot:
admin:
url: http://${BOOT_ADMIN_HOST:localhost}:${BOOT_ADMIN_PORT:8022}
zipkin:
baseUrl: http://localhost:8091

mvc:
throw-exception-if-no-handler-found: true
servlet:
Expand Down
4 changes: 0 additions & 4 deletions demos/producer/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,3 @@ management:
web:
exposure:
include: '*'

mybatis:
configuration:
map-underscore-to-camel-case: true
5 changes: 0 additions & 5 deletions demos/producer/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,4 @@ management:
exposure:
include: '*'

mybatis:
configuration:
map-underscore-to-camel-case: true


username: test123
8 changes: 7 additions & 1 deletion gateway/gateway-web/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ spring:
host: ${REDIS_HOST:localhost}
port: ${REDIS_PORT:6379}
#password: ${REDIS_PASSWORD:}

zipkin:
enabled: true
sender:
type: rabbit
sleuth:
enabled: true
http:
legacy:
enabled: true
#jwt密码
security:
oauth2:
jwt:
Expand Down Expand Up @@ -55,7 +61,7 @@ spring:
args:
retries: 3
statuses: BAD_GATEWAY

#网关白名单,无需要签权url
gate:
ignore:
authentication:
Expand Down
10 changes: 9 additions & 1 deletion gateway/gateway-zuul/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ spring:
port: ${RABBIT_MQ_PORT:5672}
username: ${RABBIT_MQ_USERNAME:guest}
password: ${RABBIT_MQ_PASSWORD:guest}

zipkin:
enabled: true
sender:
type: rabbit
sleuth:
enabled: true
http:
Expand Down Expand Up @@ -41,8 +46,11 @@ feign:
# min-request-size: 2048

logging:
level:
com.springboot.cloud.gateway: debug
path: logs/

file:
max-size: 1GB



Expand Down
7 changes: 1 addition & 6 deletions sysadmin/organization/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ spring:
username: ${POSTGRES_USERNAME:postgres}
password: ${POSTGRES_PASSWORD:postgres}
driver-class-name: org.postgresql.Driver
boot:
admin:
url: http://${BOOT_ADMIN_HOST:localhost}:${BOOT_ADMIN_PORT:8022}

zipkin:
enabled: true
sender:
Expand Down Expand Up @@ -62,6 +60,3 @@ management:
exposure:
include: '*'

mybatis:
configuration:
map-underscore-to-camel-case: true

0 comments on commit c7edbdf

Please sign in to comment.