SpringBoot integrates WebSocket (get the real ip address of the client)

When you encounter the demand of "background push", you can't avoid websocket. This time, the demand is a little special. The ip of the client is fixed. You need to distinguish the specific client according to the ip of the client. However, for future use, I also list another way to obtain the identity of the connected user - the url ...

Posted by alex_savin on Sat, 22 Jan 2022 21:19:24 +0100

How to ensure message reliability

Message loss The message was sent out and did not reach the message server due to network reasons Try catch, sending messages may lead to network failure. After the failure, there should be a retry mechanism, which can be recorded in the database, and the method of regular scanning and retransmission should be adoptedLog whether each message ...

Posted by getmukesh on Sat, 22 Jan 2022 19:24:43 +0100

In depth analysis of source code: how do Eureka and Ribbon do service discovery?

This article is based on spring cloud dalston, and the article is long. Please choose a comfortable posture to read. What are Eureka and Ribbon? What does it have to do with service discovery? Eureka and Ribbon are microservice components provided by Netflix, which are used for service registration and discovery and load balancing respectiv ...

Posted by gpittingale on Sat, 22 Jan 2022 16:02:26 +0100

Shiro integrates the actual combat of SpringBoot project

6. Integrate SpringBoot project practice 6.0 integration ideas 6.1 creating a springboot project 6.2 introducing shiro dependency <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring-boot-starter</artifactId> <version>1.5.3</version> </dependency> 6.3 confi ...

Posted by mattmate on Sat, 22 Jan 2022 07:31:13 +0100

Employee management system document [full details of basic function development]

1. Home page implementation 1.1. Access index Because the static files under the template package cannot be accessed directly, they need to be accessed indirectly; View jump is required; Create a new config package in the main program statistics directory to store your own configuration classesCreate your own configuration class MyMvcCon ...

Posted by zszucs on Sat, 22 Jan 2022 06:43:05 +0100

Thymeleaf basic grammar

Thymeleaf displays and processes data through standard variable expressions Standard variable expressions must rely on labels and cannot be used independently.Standard variable expressions are generally in the start tag, starting with th.The syntax is: < tag th: * * * = "${key}" > < / tag >In the expression, ${} can be us ...

Posted by cruzbullit on Sat, 22 Jan 2022 03:28:28 +0100

Human resource management system of Web project

Project Gitee address Blog address Project requirements Human resource management system positioning The realized human resource management system serves shareholders, employees and interns.By realizing the functions of each module, the company's personnel joining, internal transfer and resignation personnel change are carried out through ...

Posted by stuartbaggs on Fri, 21 Jan 2022 20:43:25 +0100

The spring cloud gateway carries a Token for the whitelist interface, and the direct authentication of the gateway fails. The problem is solved

The spring cloud gateway carries a Token for the whitelist interface, and the direct authentication of the gateway fails. The problem is solved 1. Problem description Previously, when using SpringCloudGateway to integrate SpringSecurity for authentication and authorization of Oauth2, because the white list needs to be set in the gateway, the UR ...

Posted by Michael Lasky on Fri, 21 Jan 2022 13:36:53 +0100

Do you know the five ways to read yml files?

Original: WeChat official account, welcome to share, reprint, please keep the source. In the previous article, we analyzed the whole process of SpringBoot parsing yml configuration files from the perspective of source code. Today, let's talk about the actual combat and summarize the ways to read the contents of yml configuration files in add ...

Posted by bundyxc on Fri, 21 Jan 2022 13:12:16 +0100

Spring Boot learning notes - employee management system

Spring Boot learning Official website: https://spring.io/projects/spring-boot#overview file: https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/reference/html/ Reference video: [crazy God says Java] the latest tutorial of SpringBoot, IDEA version, is easy to understand_ Beep beep beep_ bilibili Project complete reference code: lexi ...

Posted by stargate03 on Fri, 21 Jan 2022 05:18:29 +0100