Build personal OpenAPI

brief introduction OpenAPI Open API is open API, also known as open platform. The so-called open API (OpenAPI) is a common application of service-oriented websites. Website service providers encapsulate their own website services into a series of services API (Application Programming Interface) is open for the use of third-party developers. Thi ...

Posted on Thu, 16 Jan 2020 12:38:05 -0500 by omidh

mybatis advanced query - one way query

Catalog I. demand Two, analysis Three, design 4, Mapper layer 5, Test code Six, thinking I. demand Query the detailed information of a user. In addition to the basic information of the user, it also includes the user's department and the user's role Two, analysis Users and departments: 1. ...

Posted on Wed, 15 Jan 2020 04:53:50 -0500 by phpdragon

SSH simple integration

Understand: struts to implement the interaction between browser and server; spring completes object creation, object dependency and transaction processing hibernate completes data access Difficult points: 1. By accessing the browser, spring can create an action without creating it by itself 2. Set c3p0 in spring to improv ...

Posted on Fri, 10 Jan 2020 11:07:04 -0500 by bfinucan

Reflection mechanism in Catalina daemon

Introduction: Recently, I learned Tomcat and felt it necessary to review the Java reflection mechanism and deepen my understanding. 1, Review of reflexive knowledge   this part refers to the explanation of java reflection in Li Xinghua's java se practice classic.   reflection contains a conc ...

Posted on Fri, 10 Jan 2020 09:20:43 -0500 by flumpy

Introduction to Hibernate framework ⑤

HQL query There is no way to write * in the hql statement: Test code: package com.rl.hiber.test.hql; import java.util.Date; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.Transaction; import org.junit.Test; import com.rl.hiber.model.User; import com.rl.hiber.utils.Hib ...

Posted on Thu, 02 Jan 2020 23:56:40 -0500 by pngtest

Introduction to JPQ Integration Querydsl

_I don't know if you like or dislike using JPA. I really like not to tell me that JPA is not suitable for complex queries and so on. You need to know that all of them are micro-services now. As long as your server is split up sufficiently and the table design is reasonable, how many related queries can be transferred between services?And it com ...

Posted on Mon, 23 Dec 2019 21:58:36 -0500 by flyersman

SpringBoot Integrated Hibernate Instance

## **1. Differences between hibernate and mybatis** 1. The biggest difference between them For simple logic, both Hibernate and MyBatis have code generation tools to generate simple, basic DAO layer methods. For advanced queries, MyBatis needs to manually write SQL statements, as well as ResultMap, while Hibernate has a good mapping mechanism t ...

Posted on Thu, 19 Dec 2019 22:02:44 -0500 by Brendan

Introduction to JPA and building HelloWorld (with code download)

scene Before learning JPA, let's understand the relationship between JDBC and major databases. A long time ago, many databases appeared, such as Mysql, Oracle, SqlServer, DB2, etc. This leads to the API of which database the application will use to connect to. So JDBC came up, defined a set of specifications, and the application called JDBC, an ...

Posted on Tue, 10 Dec 2019 12:39:24 -0500 by resago

Spring boot 2. X data verification

introduce In the process of the project, it is necessary to verify the parameters. If there are few parameters, we can directly verify them by code. However, when the data is large, it will be cumbersome to use this method. Next, Validation, our main character, will come on the stage pom.xml <dependencies> <dep ...

Posted on Sun, 08 Dec 2019 22:30:38 -0500 by crouchl

How do I avoid deadlocks?

When concurrent programs become deadlocked, we often have to restart the application.The best way to solve the deadlock problem is to avoid it.   Conditions under which deadlocks occur Mutually exclusive, shared resources can only be occupied by one thread Occupy and wait, thread t1 has acquired shared resource s1, try to acquire shared r ...

Posted on Fri, 06 Dec 2019 02:56:43 -0500 by arth