Eri*_*cis 9 spring spring-boot spring-cloud netflix-zuul
我想在我的Spring Boot项目中使用Zuul.
application.properties
server.context-path=/${spring.application.name}
zuul.routes.engine.path=/api/engine/**
zuul.routes.engine.url=${engine.url}
Run Code Online (Sandbox Code Playgroud)
GET请求正在运行; 但是,Zuul没有转发我的POST请求.我没有看到任何调试输出为无论是GET还是POST在这里列出:如何使用.
如何DEBUG为Zuul 启用日志记录模式?
Spencer 的回答对我当前的 Zuul 版本(Spring Cloud Starter Zuul 1.4.6.RELEASE)不起作用。相反,有效的是将以下日志记录属性添加到 application.yml
logging:
level:
org:
springframework:
cloud:
netflix: trace
Run Code Online (Sandbox Code Playgroud)
要在 Spring 应用程序中记录请求和响应,我成功地使用了属性:
logging:
level:
org:
apache:
http:
wire: debug
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14196 次 |
| 最近记录: |