[springboot] thymeleaf basic grammar explanation

insert image description here

In order to highlight the core syntax of Thymeleaf as much as possible, this section does not add any CSS styles and other interfering elements.

1. Basic grammar

variable expression${}

How to use: Use directly to th:xx = "${}"get object properties. For example: articles is a collection, the element in the collection is an object, articles[0] represents the first object in the collection

Guess you like

Origin blog.csdn.net/hanxiaotongtong/article/details/122892697