Spring support and integration of Apache Kafka

1. Introduction Apache Kafka is a distributed, fault-tolerant stream processing system. In this article, we will introduce Spring's support for Apache Kafka and the level of abstraction provided by the native Kafka Java client Api. Spring Kafka brings a simple and typical spring template programming model through @ KafkaListener annotation. It ...

Posted by rednaxel on Fri, 06 May 2022 07:40:31 +0300

[Spring] Execution principle of transaction

rollback of transaction If the acquired transaction attribute is not empty and the thrown exception is of type RuntimeException or Error, call the rollback method in the transaction manager to roll back If the transaction property is empty or the exception thrown is not RuntimeException or Error, the transaction will continue to be committed ...

Posted by (RL)Ian on Fri, 06 May 2022 07:27:05 +0300

Spring learning record

IoC -- tell spring about the class and let spring create objects of related classes when you need them Chinese Name: control inversion English Name: (Inversion of Control) What IoC does: the programmer originally took the initiative to instantiate the object through new and handed it over to Spring In control inversion, control refers to ...

Posted by naboth_abaho on Thu, 05 May 2022 16:22:45 +0300

springcloud introduction case

brief introduction Spring Cloud is one of the projects under spring. The official website address is: http://projects.spring.io/spring-cloud/ Spring is best at integration, taking the best framework in the world and integrating it into its own projects. Spring Cloud is the same. It integrates some popular technologies and realizes functions su ...

Posted by conor.higgins on Thu, 05 May 2022 12:58:14 +0300

About SSM integration, it's enough to read this one ~ (nanny level hand-in-hand tutorial)

SSM (Spring + spring MVC + MyBatis) framework set is integrated by spring and MyBatis (spring MVC is part of spring), which is often used as the framework of web projects with simple data source.          catalogue 1, Create a web project based on maven Management: 1.1 complete the project structure ...

Posted by xxreenaxx1 on Thu, 05 May 2022 12:34:15 +0300

"Ultra vires" caused by one SQL injection

Original text from SecIN community - Author: tkswifty Relevant background   in the actual business development, SQL interaction is often an indispensable item in the business system. Mybatis, Hibernate and SpringData JPA are provided in Java to meet the needs of database interaction. However, for various reasons, when dealing with the i ...

Posted by ajpasetti on Thu, 05 May 2022 11:03:17 +0300

Explain in detail the annotation mode configuration and precautions of Spring Aop instances @ Around, @ Before, @ After, @ AfterReturning, @ AfterThrowing

People who have used the spring framework for development will have used its AOP function more or less. They all know that there are @ Before, @ Around and @ After and other advice. Recently, in order to realize the two requirements of output log and permission control in the project, I also used the AOP function. I used @ Before and @ Around. ...

Posted by tripleaaa on Thu, 05 May 2022 05:51:08 +0300

The essential difference between Jackson's @ JsonFormat and @ DateTimeFormat

1. Problems Two problems are often encountered in front and back-end interaction during development: 1. When the back end returns data to the front end, the Date attribute in the moudel object needs to be formatted and displayed to the front end (for example, formatted as yyyy MM DD HH: mm: SS). 2. When the front end passes parameters to the ...

Posted by Jezza on Thu, 05 May 2022 02:25:32 +0300

Notes on Java back-end development theory Spring practice

1, Introduction to Spring 1.1 simplify Java development The most fundamental mission of Spring application development is to simplify the open source framework.   in order to reduce the complexity of Java development, Spring adopts the following four key strategies: Lightweight and minimally invasive programming based on POJO; Loos ...

Posted by rochakchauhan on Thu, 05 May 2022 00:21:45 +0300

Build SSM framework

1, Create Maven project (idea version) I'm used to creating empty maven projects and configuring them myself, so I can learn a lot 2, Import dependent coordinates Note: be sure to see the purpose of each package by yourself. Don't put everything in the project according to the mess on the Internet 2.1 pom.xml 2.1.1 jar package coordinate ...

Posted by designergav on Thu, 05 May 2022 00:19:07 +0300