In this article, I will set up a personal blog, which contains articles written in the way of Markdown.
We will use Spring Boot to develop the project and some other tools and libraries. We will push the project to the GitHub repository and post the post to our blog using Heroku's automatic deployment function.
In addition, we will use the ...
Added by kritikia on Tue, 08 Feb 2022 16:12:04 +0200
Research on spring data JPA entitymanager injection query
In Spring Data JPA, we know that entityManager is an important tool for us to operate the database. It can not only directly perform crud and other basic operations on the entity, but also directly use native SQL statements to operate the database through methods such as ...
Added by dcallstar51 on Fri, 24 Dec 2021 15:21:17 +0200
JPA Hibernate 5 lazy load
Cause: there is a large field (rich text field with base64 image) in the project. When querying the front end, you don't want every entity class to carry this field, so you try to load it lazily
The test writes a student class, where description is a large field that needs to be loaded lazily, and there are some one- ...
Added by ReignFire on Wed, 15 Dec 2021 05:56:49 +0200
Over the years, I have contacted / learned a lot of ORM frameworks or libraries.
I think spring data JPA + queryds is the most handy tool in springboot applications. But it seems that it is not very popular in China. Looking at domestic open source projects, the project ...
Added by beebum on Fri, 03 Dec 2021 16:20:16 +0200
During data query, the console reports caused by: com.mysql.cj.exceptions.wrongargumentexception: hour_ OF_ Day: 0 - > 1 exception. The query shows that this is caused by querying the MySQL database and converting the field type to datetime.There are many online solutions, most of which are solved by setting the time zone. Unfortunately, thr ...
Added by jamz310 on Thu, 04 Nov 2021 22:42:55 +0200