![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
springboot
chrislin9
这个作者很懒,什么都没留下…
展开
-
springboot 添加本地jar 打包遇到的问题
参考spring boot 添加第三方jar 打包遇到的问题,_chenxidong9的专栏-CSDN博客转载 2021-05-30 14:35:54 · 235 阅读 · 0 评论 -
mapstruct 使用总结
介绍mapstruct 专门用来处理 domin 实体类与 model 类的属性映射的,我们只需定义 mapper 接口,mapstruct 在编译的时候就会自动的帮我们实现这个映射接口,避免了麻烦复杂的映射实现简单说:快捷实现domain 实体与DTO 、VO实体的映射转化。使用引入在pom.xml中引入jar包 <!--mapstruct核心--> <dependency> <groupId>org.mapstruct</groupId>原创 2020-11-27 11:32:40 · 3182 阅读 · 1 评论 -
spring @Cacheable 缓存 @CachePut:缓存更新 @CacheEvict:缓存删除 使用详解
参考:@Cacheable 缓存 @CachePut:缓存更新 @CacheEvict:缓存删除@Cachable 使用时出现的问题spring cache 学习 —— @Cacheable 使用详解无侵入代码方式使用Redis实现缓存功能总结@Cacheable 与 @CachePut@Cacheable 的逻辑是:查找缓存 - 有就返回 -没有就执行方法体 - 将结果缓存起来;@CachePut 的逻辑是:执行方法体 - 将结果缓存起来;所以 @Cacheable 适用于查询数据的原创 2020-10-16 09:38:16 · 2857 阅读 · 0 评论