Spring boot2 thymeleaf JS / CSS version control
Springboot 2.2.0.RELEASE
1. Enable version control
By appending md5 code to the request js/css or manually adding version number to ensure that the content of js/css can be loaded by the browser in time when it changes:
yml configuration
spring:
thymeleaf:
mode: HTML
cache: false
resources:
chain:
strategy:
conten ...
Added by mrfruits on Wed, 06 Nov 2019 20:06:58 +0200
Spring Boot 2 + Thymeleaf: form field binding, form submission processing
Some usage of Thymeleaf in Spring Boot for form processing:(1) use th:field attribute: to bind form fields(2) using ids object: generally used for the use of lable with radio or checkbox(3) form submission
Development environment: IntelliJ idea February 2, 2019Spring Boot version: 2.1.8
Create a new Spring Boot project named demo.pom.xml depe ...
Added by teongkia on Sun, 20 Oct 2019 21:57:16 +0300
Spring Boot 2.X: Developing web Applications Using Spring MVC + MyBatis + Thymeleaf
Preface
Spring MVC is a native framework built on the Servlet API and included in the Spring framework from the beginning. This paper mainly describes the architecture and analysis of Spring MVC, and uses Spring Boot + Spring MVC + MyBatis (SSM) + Thymeleaf (Template Engine) framework to build a Web project simply and quickly.
Web MVC Architec ...
Added by omidh on Thu, 10 Oct 2019 11:27:40 +0300
Add Baidu Sharing Plug-in to the website
Preface
If we want to share the web pages on our own websites, we can only send them to our friends by copying links. Here we will introduce how to use Baidu's official sharing plug-in to share. Documents can't be found on the official website, but the plug-in can still be used.
I. Code structure
Sharing code can be divided into three parts: ...
Added by orange08 on Sat, 28 Sep 2019 17:41:40 +0300
The most detailed Thymeleaf usage tutorial ever
Preface
Before proceeding, I suggest referring to another of my blogs: Play SpringBoot 2 Fast Integration | Thymeleaf See how to use Thymeleaf in SpringBoot.It is also important to note that the namespace of Thymeleaf needs to be declared on the html in the template page, as follows:
<html xmlns:th="http://www.thymeleaf.org">
Now you can ...
Added by romeo on Tue, 17 Sep 2019 01:54:03 +0300
Springboot Integration Spring Security 03 - Access Control
Springboot Integration Spring Security 03 - Access Control
stay Springboot Integration Spring Security 02 - Use custom landing pages We have learned to customize our own landing page.
Let's continue to learn about Spring Security's permission contr ...
Added by bacil on Thu, 12 Sep 2019 16:23:28 +0300
Tesseract: Simple Java Optical Character Recognition
1.1 Introduction
The development of symbols with a certain value is a peculiar feature of human beings. It is very normal for people to recognize these symbols and understand the text on the picture. Unlike the way computers grab words, we read them purely on the basis of our visual instincts.
On the other hand, the work of computers requires s ...
Added by magic2goodil on Wed, 28 Aug 2019 17:45:40 +0300
Thymeleaf's Initial Knowledge and Use
##Template Engine
In addition to JSP, SpringBoot also provides many other template engines, such as freemarker, thymeleaf, and so on.
JSP is officially not recommended for SpringBoot, and Thymeleaf is the view layer technology recommended for Sprin ...
Added by iShaun on Tue, 27 Aug 2019 04:52:32 +0300
Implementation of File Server Based on MongoDB and Spring Boot
MongoDB is a product between relational database and non-relational database, which has the most abundant functions and resembles relational database. It aims to provide a scalable and high-performance data storage solution for WEB applications. It supports a very loose data structure, is similar to JSON BSON format, so it can store more comple ...
Added by azul85 on Sun, 23 Jun 2019 01:26:02 +0300
Implementation of Spring4+CKEditor4 File Upload Function
The installation configuration of CKEditor can be easily documented. To correct some errors on the Internet, it is necessary to start the upload function of CKEditor and modify a hide flag in the CKEditor code.The CKEditor code downloaded from the official website is compressed, ugly, let alone modified.The hide flag defaults to true only becau ...
Added by wowiz on Wed, 22 May 2019 20:40:30 +0300