刘洪青 | f6b6611 | 2018-08-02 15:42:43 +0800 | [diff] [blame] | 1 | server: |
| 2 | port: 5555 |
| 3 | |
| 4 | ## logging |
| 5 | logging: |
| 6 | level: |
| 7 | root: INFO |
| 8 | org.springframework.web: INFO |
刘洪青 | 8d6ae1e | 2018-08-02 18:25:56 +0800 | [diff] [blame^] | 9 | org.springframework.cloud.gateway: TRACE |
刘洪青 | f6b6611 | 2018-08-02 15:42:43 +0800 | [diff] [blame] | 10 | com.supwisdom.infras.security: DEBUG |
| 11 | com.supwisdom.leaveschool: DEBUG |
| 12 | |
| 13 | spring: |
| 14 | application: |
| 15 | name: sample-gateway |
| 16 | cloud: |
| 17 | gateway: |
| 18 | routes: |
| 19 | - id: sample-user |
| 20 | uri: http://localhost:10010 |
| 21 | order: 10010 |
| 22 | predicates: |
| 23 | - Path=/api/sample-user/** |
| 24 | filters: |
| 25 | - RewritePath=/(?<prefix>.*)/sample-user/(?<suffix>.*), /$\{prefix}/$\{suffix} |
刘洪青 | 8d6ae1e | 2018-08-02 18:25:56 +0800 | [diff] [blame^] | 26 | - name: Hystrix |
| 27 | args: |
| 28 | name: default |
| 29 | fallbackUri: forward:/error |
| 30 | metrics: |
| 31 | enabled: true |
| 32 | |
| 33 | hystrix: |
| 34 | command: |
| 35 | default: |
| 36 | execution: |
| 37 | timeout: |
| 38 | enabled: true |
| 39 | isolation: |
| 40 | thread: |
| 41 | timeoutInMilliseconds: 5000 |
刘洪青 | f6b6611 | 2018-08-02 15:42:43 +0800 | [diff] [blame] | 42 | |
| 43 | management.endpoints.web.exposure.include: '*' |