爱吃鱼饵

 

2021年6月24日

使用Jpa报错之Unable to locate Attribute with the the given name [***] on this ManagedType

摘要: 在项目中使用Jpa对某一个字段进行查询,但是出现了以下报错信息: Jpa查询规定了特定的查询dao: @Data @Accessors(chain = true) public class SysPermissionQueryDao { @NotBlank @ApiModelProperty("权限 阅读全文

posted @ 2021-06-24 09:34 爱吃鱼饵 阅读(2705) 评论(0) 推荐(0) 编辑

Redis设置键的过期时间

摘要: 参考 //向redis里存入数据和设置缓存时间 stringRedisTemplate.opsForValue().set("baike", "100", 60 * 10, TimeUnit.SECONDS); //val做-1操作 stringRedisTemplate.boundValueOps 阅读全文

posted @ 2021-06-24 09:25 爱吃鱼饵 阅读(1475) 评论(0) 推荐(0) 编辑

Java使用redis存取集合对象

摘要: List 使用Java存取List对象,将list转为json对象进行存取 import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; @Autowired private StringRedisTemplate 阅读全文

posted @ 2021-06-24 09:22 爱吃鱼饵 阅读(2059) 评论(0) 推荐(0) 编辑

导航