摘要: 【问题描述】 使用springboot+jpa编写POJO时@Table标签报错cannot resolve table“XXX” 【问题解决】 1、添加database 最右侧的侧边栏,没有的话view-tool window-database 中途可能缺少driver,旁边就有下载,如果还是不行 阅读全文
posted @ 2021-09-06 12:24 YFEYI 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 【问题描述-】 使用Example.of(POJO)和findAll(example)查询时一直没有数据,返回的List集合的size()为0,导致重复的数据不断插入。 经搜索已知findAll(example)查询时会自动的忽略掉POJO中值为NULL的属性 【问题分析-】 设置spring.jp 阅读全文
posted @ 2021-09-06 11:49 YFEYI 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 【项目选型】 (Maven)SpringBoot+JPA 【项目搭建】 pom.xml: <parent> <artifactId>spring-boot-starter-parent</artifactId> <groupId>org.springframework.boot</groupId> 阅读全文
posted @ 2021-09-06 11:10 YFEYI 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 【前言】 因个人能力有限,本文的仅是为了在构建项目时的快速查阅使用。 【为什么使用Spring Boot】 Spring Boot解决了Spring的部分缺点: 1、繁杂的(xml / 注解)配置 2、库坐标的导入,以及版本带来的不兼容 SpringBoot不是Spring功能上的增强,而是提供了一 阅读全文
posted @ 2021-09-06 09:48 YFEYI 阅读(58) 评论(0) 推荐(0) 编辑