![](https://img.kancloud.cn/d9/19/d919c3bbbb341fd439bc04e125d89201_1916x803.png) ### 经过在1.5当中的配置gateway网关当中的各个级别的日志也都记录到了log当中,然后再经过上图当中对gateway网关当中路由配置的修改,那么以前我们请求member是这么请求的 ### ![](https://img.kancloud.cn/42/ce/42ce9e1d1162b41927d934c4a95112f7_1798x261.png) ### 现在我们就可以直接请求网关gateway服务8000端口后边加上member/hello路径即可正确转发到member模块对应的控制器去处理了 ### 并且memeber服务当中也会正确打印请求日志 ![](https://img.kancloud.cn/aa/7b/aa7b770b91a53c7772bf6e9b2a9a7f2e_1621x503.png) ### 但是如果不对gateway网关模块做配置的话它是不会有日志打印的 ### ![](https://img.kancloud.cn/7c/07/7c07bc043f545df5af54f0f93f7ff393_1814x533.png) ### ![](https://img.kancloud.cn/16/b4/16b48fbe3da5c1d085f4d55806d29a35_1362x874.png) ### 我们需要单独为gateway服务输入启动参数: `com.jiawa.train.gateway.config.GatewayApplication` ### 这个时候再去请求就会有日志打印了 ### ![](https://img.kancloud.cn/60/d8/60d81f3080bb42f7a89fa418fb22ecb4_1434x115.png)