Using the Thymeleaf template of SpringBoot

Using the Thymeleaf template of SpringBoot introduce When developing traditional Java WEB projects, we can use JSP page template language, but it is not recommended in SpringBoot. SpringBoot supports the following page template languages Thymeleaf FreeMarker Velocity Groovy JSP The above does not list all the page template technologies ...

Posted on Sun, 19 Sep 2021 12:50:34 -0400 by wudiemperor

Two ways to implement page layout using thymeleaf template

Method 1: Using thymeleaf Layout:fragmentLabel, layout page as follows: <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta nam ...

Posted on Thu, 09 Jul 2020 10:44:41 -0400 by Dethman

How to use the tymeleaf template engine of spring boot? Case explanation

According to the notes of studying java in B station Template engine Thymeleaf The front end wants to display data. We used to convert pages into JSPS. In this way, we can realize data display and interaction. jsp supports very powerful functions, including the ability to write Java code. But we use the spring boot project in jar mode inst ...

Posted on Thu, 04 Jun 2020 08:02:04 -0400 by papa

Tymeleaf template engine of SpringBoot

According to the notes of studying java in B station Template engine Thymeleaf The front end wants to display data. We used to convert pages into JSPS. In this way, we can realize data display and interaction. jsp supports very powerful functions, including the ability to write Java code. But we use the spring boot project in jar mode instead ...

Posted on Tue, 02 Jun 2020 21:52:29 -0400 by dlf

Currency conversion of Thymeleaf

#Overview This article describes how to use the page component, Thymeleaf, to automatically convert currencies #Maven depends on <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> <version>2.3.0.RELEASE</version> </de ...

Posted on Sat, 30 May 2020 10:30:37 -0400 by henkealf

The use of jump address in thmeleaf

Recently, when using thmeleaf, I encountered a problem, such as the address to jump to is localhost:8080/pro/a/b , jump and find out localhost:8080/pro/path/a/b , so there is more path in the address, which is obviously wrong. In fact, it's different to add / or not add / before the jump address. Before the page jump address, add /, which means ...

Posted on Tue, 26 May 2020 10:13:04 -0400 by retoknaak

Thymeleaf built-in object expression completeness

Here, the built-in expressions from Thymeleaf version 3.0 are collated- Reference from Official Thymeleaf 3.0 Documentation , Articles 18 and 19 1. Expression Basic Object Reference from Thymeleaf 3.0 Official Document Article 18 1.1 Base Object #ctx: Context object ${#ctx.locale} ${#ctx.variableNames} ${#ctx.request} ${# ...

Posted on Wed, 06 May 2020 13:32:15 -0400 by umguy

Spring boot + Vue + elementui to build a traditional simple management system with internationalization front and back

This project can download the source code on GitHub, welcome to give your advice. Thank you GitHub address: Click to enter Developing IED using IntelliJ IDEA At present, we only analyze how to use the framework at the architecture application layer. Later, we will analyze the underlying principle technology of all architectures used after the ...

Posted on Tue, 05 May 2020 15:45:30 -0400 by gregsmith

Spring Boot upload file

To upload a Spring Boot file, you only need to set a MultipartFile parameter on the controller's method. Of course, you can use @ RequestParam to specify the method name. If you want to upload multiple files, you can use arrays. In addition, you can use a class whose member variable is MultipartFile to receive files and ...

Posted on Sun, 03 May 2020 22:07:44 -0400 by tnewton

SpringBoot Series i18n Internationalized Multilingual Support Tutorial

SpringBoot Series i18n Internationalized Multilingual Support Tutorial @[toc] 1. Environment Building This blog describes how SpringBoot integrates i18n to internationalize system languages. ok, first create a SpringBoot project, referring specifically to my blog column: SpringBoot Series Blog Column Links Environmental preparation: IntelliJ I ...

Posted on Tue, 21 Apr 2020 13:09:05 -0400 by buddok