Browse Source

配置提交

chenweida 7 năm trước cách đây
mục cha
commit
e4a55d72b2
2 tập tin đã thay đổi với 12 bổ sung3 xóa
  1. 9 0
      application.yml
  2. 3 3
      web-gateway.yml

+ 9 - 0
application.yml

@ -16,6 +16,15 @@ server:
    svr-logServer-context-path: /
    svr-configurations-context-path: /
#hibernate 配置
hibernate:
  dialect: org.hibernate.dialect.MySQL5Dialect
  show_sql: false
  ejb:
    naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
#发现服务
eureka:
  client:

+ 3 - 3
web-gateway.yml

@ -7,10 +7,10 @@ server:
#zuul 默认会代理所有的微服务  路径 /{appliction.name}/**
zuul:
#zuul:
#  ignored-services: '*'  ##忽略全部的代理  忽略单个微服务   ignored-services: svr-user 多个逗号分割
  routes:
    svr-user: /user/**  ##svr-user方向代理到/user下多层级的路径
#  routes:
#    svr-user: /user/**  ##svr-user方向代理到/user下多层级的路径
#    svr-user:    这种方式和  svr-user: /user/**  一样  svr-user可以随便写 唯一即可
#      path: /user/**  path是代理后的路径
#      serviceId: svr-user  serviceId是微服务name