Several implementation methods of using WebSocket in Spring Boot - detailed explanation

brief introduction The so-called WebSocket is similar to Socket. Its function is to enable the client and server in Web applications to establish full duplex communication. There are three ways to use WebSocket in Spring based applications: Implemented using @ ServerEndpoint annotation provided by JavaIt is implemented using the low-level Web ...

Added by rami on Tue, 14 Dec 2021 21:52:07 +0200

Design of Spring Cache for Java distributed microservice cloud development architecture Spring Cloud+Spring Boot+Mybatis+ElementUI front end and back end separation

Recently, in charge of the architecture of educational products, two R & D students suggested: "can the Redis client encapsulated by the team adapt to Spring Cache, so it will be much more convenient to add cache". Friends who need the framework source code can see my personal profile and contact me, Recommended distributed archit ...

Added by shawngibson on Tue, 14 Dec 2021 03:47:57 +0200

SpringBoot learning 03: understanding the principle of automatic assembly

1. SpringBoot features 1.1. Dependency management Dependency management for parent project Dependency management <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.4.RELEASE</version> </parent> His paren ...

Added by essjay_d12 on Tue, 14 Dec 2021 03:32:01 +0200

Vulnerability Replication under SpringBoot with log4j integration

1. Summary of prospects Log4j's epic bug has been buzzing these days, and I want to explore how it was triggered. 2. Build a SpringBoot project that integrates Log4j Create a springboot project and make a modification to the pom file according to the guidelines of the spring website <dependencies> <dependency> ...

Added by Shiki on Sun, 12 Dec 2021 20:04:00 +0200

Teach you to write an RPC framework hand in hand

Following the previous section, Teach you to write an RPC framework (1) We handwritten a Spring Boot Starter and started the first step of building our own wheels. In this section, let's continue to complete the RPC framework! V. user defined annotation For my requirements, when using my RPC framework, the service provider can tell the fram ...

Added by zymosan on Sun, 12 Dec 2021 06:36:23 +0200

Spring boot custom control layer parameter parsing

1, BackgroundIn the Spring Controller, we can map the parameters in the request to the specific parameters of the control layer through @ RequestParam or @ RequestBody. How is this implemented? If the value of a parameter in the control layer comes from Redis, how should I implement it?2, How are parameters resolvedAs can be seen from the figur ...

Added by patrickcurl on Sat, 11 Dec 2021 13:42:11 +0200

A detailed explanation of Spring affairs, now you always understand?

preface We all know what transactions are, and Spring transactions use AOP to provide declarative and programmatic transactions on the database to help us simplify development and decouple business logic and system logic. But what is the principle of Spring transactions? How do transactions propagate between methods? Why do transactions fail s ...

Added by deezerd on Sat, 11 Dec 2021 07:59:41 +0200

Obtaining front-end data from spring

1, hello world   using spring mvc mainly solves the problem of Servlet redundancy before. Usually, maven's web project is used and related dependencies are imported.   about MVC mode, it represents model view controller mode. This pattern is used for layered development of applications.   Model - a Model represents an obje ...

Added by Onle on Sat, 11 Dec 2021 01:11:00 +0200

Learning notes: SSM framework integration steps

Three stages of SSM integration Spring and spring MVC environment configuration Integrated configuration of Spring and Mybatis Other component configurations: declarative transactions, logs······ 1, Spring and spring MVC environment configuration 1.1 relying on spring webmvc Add the dependency packag ...

Added by morrisoner on Fri, 10 Dec 2021 18:25:46 +0200

Spring MVC learning record: annotation learning of spring MVC

Since you want to learn spring, you need to learn annotations. Spring MVC also has corresponding annotations. 1, Spring MVC common annotations. (1) Annotation of binding url ① @ RequestMapping can be used in classes or methods Attribute: value/path: indicates the binding url method: the default value is GET/POST. The default value is a c ...

Added by ysu on Fri, 10 Dec 2021 17:08:03 +0200