Spring Data Rest encounters a composite primary key

If the project persistence layer uses Spring Data JPA and some data tables contain composite primary keys (Union primary keys), how can the interface generated by Spring Data Rest access the data corresponding to a primary key in these data tables? Suppose the database has two data tables film with compound primary key ...

Posted on Sun, 31 May 2020 02:44:39 -0700 by volleytotal.ch

In depth interpretation of KafkaListener annotation of spring Kafka

brief introduction At present, Kafka is mainly used as a distributed publish subscribe message system, and it is also one of the most popular message queuing systems. Therefore, more and more frameworks integrate Kafka, such as spring Kafka, which will be mentioned in this article. Since Kafka is a message publishing and subscription system, ...

Posted on Sat, 30 May 2020 01:00:05 -0700 by foyer

Spring07_ Pure annotation and spring integration Junit

For the source code of this tutorial, please visit: tutorial_demo In spring04_ In IOC and DI, we use XML configuration and Apache Commons DbUtils to implement single table CRUD operation. In this tutorial, we use pure annotation and Apache Commons DbUtils to implement single table CRUD operation. 1, Requirements and technical requirements 1.1 ...

Posted on Wed, 27 May 2020 22:53:16 -0700 by hatching

SQL statement blocking P6SPY

Software introduction P6Spy is an open source framework that can be used to intercept and modify data operation statements in applications. Through P6Spy, we can intercept SQL statements, which is equivalent to a recorder of SQL statements, so we can use it for relevant analysis, such as performance analysis. P6SPY provides the following functi ...

Posted on Wed, 27 May 2020 07:33:48 -0700 by FeralReason

Use site-maven-plugin to build public warehouses on github

brief introduction Maven is a building tool that we often use in developing java programs. During team development, if we want to share our own written jar packages with others, we usually need to build our own Maven repository and upload the written jar packages to the Maven repository for other users to use. Building a maven repository requir ...

Posted on Tue, 26 May 2020 15:55:01 -0700 by eddiegster

[java design pattern] - strategy pattern (case analysis)

Policy Mode 1. Concepts 1. Understanding Strategic Patterns Policy mode is a behavioral mode that separates objects from behaviors and defines behaviors as an interface to behaviors and an implementation of specific behaviors.The most important feature of strategy mode is the change of behavior, which can be replaced by each other. Each ...

Posted on Mon, 25 May 2020 18:19:41 -0700 by gizmola

Three cases of @Import in Spring

We often see @Import import functionality in the Spring framework, especially at the framework level. ​ I'll just tell you what it can import. First, declare that @Import is a comment. There are three types of imports: 1. Import the configuration @Configuration, similar to the import xml file of spring's earlier version 2.5, <?xml version=" ...

Posted on Mon, 25 May 2020 16:46:45 -0700 by warriors2003

Zen reading notes of design patterns - 22 design patterns

Recently, I am reading Qin Xiaobo's Zen of design pattern. This article is another 2000 line long and watery note, recording 22 of the 23 design patterns mentioned in the book, basically copying the definition, advantages, disadvantages, applicable scenarios and demo of each design pattern mentioned in the book. It is recommended to read the o ...

Posted on Mon, 25 May 2020 08:52:40 -0700 by depsipher

Spring04_IOC and DI in action

For the source code of this tutorial, please visit: tutorial_demo Before learning this tutorial, you need to know (use it if you want) the following: Database connection pool c3p0; Apache Commons DbUtils. Learning without practicing is false. Next, we use the knowledge of IOC and DI learned before to combine Apache Commons DbUtils to implem ...

Posted on Mon, 25 May 2020 08:51:45 -0700 by squiblo

Spring Boot develops and integrates WebSocket to realize private instant messaging system

###1 / General Using Spring Boot as the basic framework, Spring Security as the security framework and WebSocket as the communication framework, point-to-point chat and group chat are realized. ###2 / dependence required Spring Boot version 1.5.3 uses MongoDB to store data (not required). Maven relies on the following: <properties> ...

Posted on Mon, 25 May 2020 08:20:52 -0700 by fowlerlfc