摘要: package com.loan.msg.config; import com.loan.msg.service.MessageReceiver; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.... 阅读全文
posted @ 2018-11-29 17:05 也许还年轻 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: 如何将所有的通过url的请求参数以及返回结果都输出到日志中? 如果在controller的类中每个方法名都写一个log输出肯定是不明智的选择。 使用spring的AOP功能即可完成。 logger.info("url ={}",request.getRequestURI()); //method l 阅读全文
posted @ 2018-11-29 14:25 也许还年轻 阅读(372) 评论(0) 推荐(0) 编辑
摘要: package com.loan.msg.config; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; import org.springframework.context.annotation.ComponentScan; import org.springframework.context... 阅读全文
posted @ 2018-11-29 13:15 也许还年轻 阅读(332) 评论(0) 推荐(0) 编辑