摘要:
springboot项目中使用注解的方式实现 首先:编写一个对于操作方法进行日志记录的注解 然后,注解的切面配置 这里采用了两中切面通知: 分别是返回通知和异常通知,注解中的参数方便在返回通知或者异常通知中处理操作类型(方法做了什么操作) 返回通知是方法正常执行时候会进入的通知方法,可以通过对方法返 阅读全文
posted @ 2018-04-13 14:51
dream_on_sakura_rain
阅读(2277)
评论(1)
推荐(0)
摘要:
首先需要引入先关pom依赖(项目源码参考:https://github.com/licunzhi/dream_on_sakura_rain/tree/master/loadingcache_demo)选择合适的版本 <!-- https://mvnrepository.com/artifact/co 阅读全文
posted @ 2018-04-13 10:51
dream_on_sakura_rain
阅读(20126)
评论(0)
推荐(0)