![](https://img-blog.csdnimg.cn/71b8ee6565a74e2480771f79a3ec0b1c.jpeg?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringBoot
springboot介绍
stay hungry,stay you
stay hungry,stay young
展开
-
Caffeine Cache 缓存框架进阶学习
Caffeine Cache 进程缓存之王https://www.java1000.com/89843.htmlhttps://www.cnblogs.com/rickiyang/p/11074158.htmlspring cachehttp://www.cppcns.com/ruanjian/java/189741.html以下为简单的查询,查询缓存,删除缓存pom:<!-- Caffeine Cache 缓存框架 start--> <dependency>原创 2020-07-31 15:28:16 · 618 阅读 · 0 评论 -
Spring Boot 多数据源配置的学习
Spring Boot 多数据源配置原创 2020-07-30 16:27:24 · 88 阅读 · 0 评论 -
springboot中spring.profiles.include 和 active的妙用
springboot中spring.profiles.include 和 active的妙用原创 2020-07-30 14:40:54 · 1672 阅读 · 0 评论 -
springboot springdata jpa CRUD
单表:1:条件查询和分页: @GetMapping(value = "/") @ResponseBody @ApiOperation(value = "查询和分页", notes = "无需添加参数", code = 200, produces = "application/json") public Page<NamedSql> findAllByL...原创 2019-06-12 15:51:34 · 103 阅读 · 0 评论 -
spring data jpa @Query注解中delete语句报错
转自:https://blog.csdn.net/liyanlei5858/article/details/81289858项目中需要删除掉表中的一些数据@Query("delete from EngineerServices es where es.engineerId = ?1")int deleteByEgId(String engineerId);但是提示了错误org.hibe...原创 2019-07-17 22:03:10 · 383 阅读 · 0 评论 -
jpa findById 不需sql但是 dao integer接口是需要的
impl: List<StRiskFireInspect> listFireInspectInformation = stRiskFireInspectRepository.findByPermitId(permitId);dao integer: List<StRiskFireInspect> findByPermitId(String permitId...原创 2019-07-27 15:24:34 · 299 阅读 · 0 评论 -
SpringDataJPA之@Query 如何 LIKE(JPA模糊查询)
对于JPA来说,like查询是不友好的,,例如这么查,是查不出来东西的@Query("select u from user u where u.username like '%username%'")List<User> findUserByUsernameLike(@Param("username") String username);@Query("select u fr...原创 2019-09-21 19:19:01 · 2349 阅读 · 0 评论 -
spring data jpa使用详解
1.1 简单查询–接口方法1.2 五个接口详解1.2.1 CrudRepository接口其中T是要操作的实体类,ID是实体类主键的类型。该接口提供了11个常用操作方法。@NoRepositoryBeanpublicinterface CrudRepository<T, ID extendsSerializable> extends Repository<T, I...原创 2019-10-30 09:46:59 · 266 阅读 · 1 评论