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

[authentication and authorization] Spring Security custom page

In the previous part, we have roughly combed the authentication and authorization process. In this process, we always use the default page generated by the system. After logging in successfully, we also directly transfer to the root path page. In the actual development process, we need to customize the login page, and sometimes add various aut ...

Posted on Fri, 08 May 2020 11:03:31 -0700 by fabby

springboot uses thmeleaf as a template

jsp obviously can't keep up with the development of the times. Is freemarker enough? Try thymeleaf instead. The official recommendation of springboot is freemarker and thymeleaf. Compared with freemarker, thymeleaf is more powerful. It can dynamically replace the static content in the tag, so that the front end can write the page at ease, and ...

Posted on Thu, 30 Apr 2020 21:10:38 -0700 by swissmissflash

Sample project for bare-handed code sweeper login

Sample project for bare-handed code sweeper login I don't know if it's WeChat or not, now there are more and more scenes of scanner login. As a pursuit and ideal new four good yard farmer, of course, we must keep up with the trend of the times and make an example with no hands. This sample project is intended for the following technical stac ...

Posted on Sun, 05 Apr 2020 00:04:40 -0700 by Will Poulson

(3) SpringBoot -- template engine thymeleaf

1, Template engine supported by SpringBoot 1. Tymeleaf (official recommendation) 2,FreeMarker 3,Groovy 4,mustache   Why isn't JSP recommended for SpringBoot? 1. JSP is more intrusive to the page. 2. The management of web container version.   2, About thymeleaf Perfect separation of front and back ends   3, Realize MVC The document ...

Posted on Fri, 03 Apr 2020 00:21:19 -0700 by Saphod

Leyou mall project -- day14 thymeleaf and static

1. Commodity details When a user searches for a product, he will definitely click view to enter the product details page. Next, we will complete the display of the product details page, 1.1.Thymeleaf In the product details page, we will use Thymeleaf to render the page, so we need to understand th ...

Posted on Thu, 27 Feb 2020 01:45:05 -0800 by ghazianibros

Developers recommend reading: Internationalization support practices in the Spring Boot architecture

Prig Boot adds dependencies by inheritance mainly through a build system like Maven or Gradle, while inheriting the excellent elements of the Spring framework, reducing the complex configuration in the Spring MVC architecture. Built-in Tomcat, Jetty containers, running programs using Java application s instead of traditionally placing WAR pack ...

Posted on Tue, 17 Dec 2019 19:25:55 -0800 by please_explain

Spring boot server form data verification

POM dependence <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.10.RELEASE</version> </parent> <properties> <java.version>1.8</java.version> <thymeleaf.version>3.0.2.RELEASE</ ...

Posted on Tue, 03 Dec 2019 12:58:26 -0800 by stickynote427

Wechat authorization is the principle. Spring Cloud OAuth2 authorization code mode

Last article Spring Cloud OAuth2 single sign on This paper introduces the use of password mode for identity authentication and single sign on. This article introduces another authorization mode of Spring Cloud OAuth2 - authorization code mode. The authentication process of authorization code mode is as follows: 1. The user client requests the ...

Posted on Wed, 06 Nov 2019 18:46:24 -0800 by darksniperx

Tymeleaf common syntax: using asterisk expressions

When dealing with templates, the variable expression ${...} is generally used to display variables, and the selected object expression * {...}, also known as the asterisk expression, is also used.If the object is selected first in the template, you need to use an asterisk expression. The built-in object effect of Thymeleaf is equivalent to an a ...

Posted on Fri, 18 Oct 2019 10:36:12 -0700 by pspfreak101