2019年1月20日
摘要: 使用springboot整合shiro时,@value注解无法读取application.yml中的配置 读取不到之前的配置如下: 将LifecycleBeanPostProcessor的配置方法改成静态的就可以了 阅读全文
posted @ 2019-01-20 16:51 stevenxu 阅读(836) 评论(0) 推荐(0)
  2019年1月17日
摘要: 放在实现类中: 第一种方式key = "'user_id_'+#id",unless = "#result == null") @Cacheable(value = "user",key = "'user_id_'+#id",unless = "#result == null") public Us 阅读全文
posted @ 2019-01-17 14:50 stevenxu 阅读(11538) 评论(0) 推荐(0)