springdata
NSAKA_
这个作者很懒,什么都没留下…
展开
-
解决 Error creating bean with name redisConnectionFactory问题
Error creating bean with name ‘cacheManager’ defined in class path resource [org/springframework/boot/autoconfigure/cache/RedisCacheConfiguration.class]: Unsatisfied dependency expressed through method ‘cacheManager’ parameter 0; nested exception is org.sp原创 2020-06-02 13:59:21 · 7556 阅读 · 1 评论 -
springdataJPA对原生sql支持问题
在项目中用到的是springdataJPA连接数据库进行操作,但是JPA中的hql语句不能够满足业务要求,因而需要用到原生sql但是有一个问题: @Query(value = "SELECT ppd.* FROM zt_productionplandetails AS ppd \n" + " \tLEFT JOIN zt_salesplan sp ...原创 2019-11-26 13:24:46 · 550 阅读 · 0 评论 -
注解@NoRepositoryBean的作用
最近工作中用到了spring data JPA,看官方文档有个@NoRepositoryBean,说说自己的理解。官方文档:The intermediate repository interface is annotated with @NoRepositoryBean. Make sure you add that annotation to all repository interfac...原创 2019-11-05 17:17:32 · 5916 阅读 · 0 评论