摘要: SpringBoot之Mybatis操作中使用Redis做缓存 转自:http://www.cnblogs.com/5ishare/ 今天这篇博客学习下Mybatis操作中使用Redis做缓存。这里其实主要学习几个注解:@CachePut、@Cacheable、@CacheEvict、@CacheC 阅读全文
posted @ 2020-08-14 11:42 你我一路随行 阅读(1188) 评论(0) 推荐(0)
摘要: SpringBoot事务注解详解 @Transactional spring 事务注解 1.简单开启事务管理 @EnableTransactionManagement // 启注解事务管理,等同于xml配置方式的 <tx:annotation-driven /> 2.事务注解详解 默认遇到throw 阅读全文
posted @ 2020-08-14 11:34 你我一路随行 阅读(2003) 评论(0) 推荐(0)
摘要: StringUtils中 isNotEmpty 和isNotBlank的区别【java字符串判空】 1 isNotEmpty(str)等价于 str != null && str.length > 0 2 isNotBlank(str) 等价于 str != null && str.length > 阅读全文
posted @ 2020-08-14 10:11 你我一路随行 阅读(530) 评论(0) 推荐(0)