Spring Boot learning notes - Spring Boot integration Shiro
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 ...
Added by Fazer on Thu, 20 Jan 2022 23:52:53 +0200
The SpringBoot Getting Started series implements uniform exception handling, which is as simple as that!
Next, we will focus on how to use uniform exception handling in SpringBoot applications.How do I reuse exception data with normal business data and return it as a json?
Why uniform exception handling
Currently, our project architecture is basically a separate front-end and back-end model: developed using Restful interface protocol, the fo ...
Added by DeGauss on Wed, 13 May 2020 20:00:56 +0300
SpringBoot+RabbitMQ learning notes Topic of three switches using RabbitMQ
I. Introduction
Topic Exchange Match the routing key to a pattern. At this time, the queue needs to be bound to a mode. The symbol "ා" matches one or more words, and the symbol "*" does not match many words. So "audit. *" can match "audit.irs.corporate", but "audit. *" only matches "audit.i ...
Added by jholzy on Tue, 28 Apr 2020 19:52:58 +0300
[spring Internationalization] Detailed internationalization of springMVC, springboot
In web development, we often encounter problems with international language processing, so how can we internationalize?
What can you get?
Use springgmvc and thymeleaf for internationalization.
Use springgmvc and jsp for internationalization.
Use springboot and thymeleaf for internationalization.
Catalog
What can ...
Added by PhaZZed on Mon, 20 Apr 2020 05:57:12 +0300
Simple use of spring MVC thymeleaf template
Tymeleaf advocates that templates are pure html code, which can run directly in pure static environment without template engine. Now if we write expressions like ${} directly in html, we will obviously make mistakes in the static environment, which is not in line with the idea of Thymeleaf. All expre ...
Added by mc2007 on Wed, 15 Jan 2020 11:12:49 +0200
SpringBoot integrates elastic search instance
1, Download and launch elastic search
Download address: https://www.elastic.co/downloads/past-releases
Select a version, Download
The blogger here tests 2.4.4
You can choose the ZIP package to download
There are some subtle differences between windows and mac when starting
windows: enter bin in the file directory, and then click elasti ...
Added by eroticheretic on Tue, 31 Dec 2019 19:29:29 +0200
Iterative processing of thymeleaf data
Data iteration is an important part of the template language and of all project development, so the following iteration will be implemented and the iteration type of data in actual development will often have List Map type
1.0 Establish a controller to append a List collection data to the controller
/****
* Simulate Collec ...
Added by rathlon on Wed, 04 Dec 2019 04:40:29 +0200
Spring Security series Spring Security simple authentication configuration
Preface
In the previous article, the simplest authentication is configured, and the login page accessed is provided by Spring Security by default. In this article, we will create a user login page of our own.
Custom login page
First of all, we need to prepare the custom page. Let's use Thymeleaf to do this.
Reference Thyme ...
Added by felipe_lopes on Sun, 17 Nov 2019 20:36:54 +0200
Weblux user management interface
A simple CRUD for user management has been completed. Now we need to show it on the page to facilitate user management. Although it is now popular to separate the development before and after, but in some small companies do not need front-end developers, the page is also the back-end development in writing. So this time we use thmeleaf to devel ...
Added by elflacodepr on Thu, 14 Nov 2019 18:19:35 +0200
SpringBoot from getting started to giving up, Chapter 3
I. static resource mapping rules
In the springBoot project, the relevant configuration of springmvc is in the webmvcauautoconfiguration class
public void addResourceHandlers(ResourceHandlerRegistry registry) {
if (!this.resourceProperties.isAddMappings()) {
logger.debug("Default resource handling disabled");
return;
...
Added by themistral on Wed, 13 Nov 2019 12:02:12 +0200