摘要: 阅读全文
posted @ 2022-07-02 15:49 杭州胡欣 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1. 自动生成代码创建时间和作者 阅读全文
posted @ 2022-07-01 11:24 杭州胡欣 阅读(18) 评论(0) 推荐(0) 编辑
摘要: JpaReposit是SpringBoot Data JPA提供的非常强大的基础接口。 可以看出JpaRepository继承了接口PagingAndSortingRepository和QueryByExampleExecutor。而PagingAndSortingRepository又继承Crud 阅读全文
posted @ 2022-06-30 13:38 杭州胡欣 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 日常开发中,经常会遇到实体有创建时间,更新时间,创建人,更新人等字段。这些字段不是核心的业务字段,但是对于跟踪数据记录却非常重要。由于重要程度不是那么高,经常会忘了赋值,导致数据库存的是过期数据。 那么有没有自动化的方法来自动填充这些非核心的字段呢? 答案是肯定的,spring data提供一组注解 阅读全文
posted @ 2022-06-29 20:11 杭州胡欣 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 最近生了场重病,有半年多没写博客了,经历了这么多,发现技术上不用太执著,有些东西明白大致意思就行了,没必要扣得太么细,用多少扣多少就行。人生短暂,要把时间用在更有意义上的事情上。 JPA是JAVA的一套持久层的规范,设计者通过一些接口和方法和基础类,定义了一套完成持久化数据的标准结构 Specifi 阅读全文
posted @ 2022-06-29 15:40 杭州胡欣 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Inheritance is a defining feature of the Collections API.The interfaces that are used to manipulate the collections specify the operations that must b 阅读全文
posted @ 2021-12-19 04:35 杭州胡欣 阅读(34) 评论(0) 推荐(0) 编辑
摘要: The ArrarList class is in the clollection API (applictation programming interface), whick is a library provided by Java.Most of the API in java.util . 阅读全文
posted @ 2021-12-19 04:23 杭州胡欣 阅读(35) 评论(0) 推荐(0) 编辑
摘要: An ArrayList provides an alternative way of storing a list of objects and has the following advantages over an array: An ArrayList shrinks and grows a 阅读全文
posted @ 2021-11-25 14:23 杭州胡欣 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 先看段代码: InfoOfDay day = new InfoOfDay(); List<String> list =day.getIncidentList(); list = new ArrayList<>() ; list.add("hu"); List<String> list1 =day.g 阅读全文
posted @ 2021-11-01 17:57 杭州胡欣 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 今天在用git clone 一个新仓库时,一开始提示我输入用户名密码,可能输入有误,然后再执行 git clone http://......时就出现如下错误提示: fatal: http://192.168.1.120:10000/dxww-fe/pc-admin/info/refs not va 阅读全文
posted @ 2021-09-28 14:04 杭州胡欣 阅读(4279) 评论(0) 推荐(0) 编辑