11 2022 档案

摘要:1.创建实体,这是排序的基本字段,其他字段自定义增加 import java.util.List; import org.springframework.data.annotation.Transient; public class HierachyDeviceModel { private Int 阅读全文
posted @ 2022-11-25 11:11 jason47 阅读(130) 评论(0) 推荐(0) 编辑
摘要:使用@Transient 但需要注意不要使用javax.persistence.Transient 而是使用org.springframework.data.annotation.Transient 阅读全文
posted @ 2022-11-24 16:28 jason47 阅读(400) 评论(0) 推荐(0) 编辑
摘要:1.添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> <dependency> <groupI 阅读全文
posted @ 2022-11-23 16:04 jason47 阅读(290) 评论(0) 推荐(0) 编辑
摘要:可能有朋友跟我一样明明在Maven里面已经导入了jar包,但是在java类里面import导入类时出问题 问题分析: 该jar包的scope不是compile,导致import时导入类失败。 问题解决: 1、进入Project Structure,将该jar包的scope改为Compile File 阅读全文
posted @ 2022-11-07 14:51 jason47 阅读(1152) 评论(0) 推荐(1) 编辑
摘要:jdbc连接数据库,例如HikariDataSource JPA是实体到数据库的封装,是ORM,springboot还提供JDBCTemplate Object-JPA(JDBCTemplate)-JDBC(HikariDataSource)-DB(Mysql) 1. JDBC和JPA的区别 不同标 阅读全文
posted @ 2022-11-07 10:35 jason47 阅读(162) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示