Spring 注解整理(个人理解) 2021-02-23 顺序不分前后哈就是遇到哪个写哪个记录下 @Cacheable 缓存注解 当返回值为null的时候不缓存 unless = "#result == null" 的意思就是,当返回值为null时,就不缓存 @Cacheable(value = "test:user", key = "#username", unless = "#result == null")