View Resolvers with Spring Boot: Difference between revisions
From My Limbic Wiki
(→JSP) |
|||
Line 1: | Line 1: | ||
=JSP= | =JSP= | ||
<source lang="jsp"> | |||
<!DOCTYPE html> | |||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> | |||
<html lang="en"> | |||
<body> | |||
<div> | |||
<div> | |||
<h1>Spring Boot JSP Example</h1> | |||
<h2>Hello ${message}</h2> | |||
Click on this <strong><a href="next">link</a></strong> to visit another page. | |||
</div> | |||
</div> | |||
</body> | |||
</html> | |||
</source> | |||
=Thymeleaf= | =Thymeleaf= | ||
https://www.thymeleaf.org/ | https://www.thymeleaf.org/ |
Revision as of 20:22, 23 September 2019
JSP
<source lang="jsp"> <!DOCTYPE html> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> <html lang="en"> <body>
Spring Boot JSP Example
Hello ${message}
Click on this <a href="next">link</a> to visit another page.
</body> </html> </source>
Thymeleaf
Allow Backend and Frontend developers to communicate throug text inside HTML repalaced at the template rendering with the text contained in the "text" attribute <source lang="html">
Welcome to our grocery store, Sebastian Pepper!
</source>