pushpakaliencodes.hashnode.dev·Aug 1, 2024Why @GetMapping doesn't work in Thymeleaf?I recently came across this issue while working with thymeleaf in spring boot.I defined an API like : @RestController @RequestMapping("/") public class HomeController { @GetMapping("/home") public String getHomePage() { return "home";...DiscussUnderstanding Spring.ioSpringboot
Thomas Surmannbootifyio.hashnode.dev·May 13, 2024Bind empty String as null in Spring BootWhen a form is submitted with an input field without any data, the browser submits it as an empty string "". That's why Spring Boot writes this to the data object exactly this way - with a StringTrimmerEditor configuration in place, we can bind the v...DiscussSpringboot
Thomas Schühlytschuehly.de·Nov 1, 2023Spring ViewComponent v0.7.0 releaseI'm excited to announce the release of Spring ViewComponent v0.7.0 today. You can grab the release from Maven Central by following the instructions at: https://github.com/tschuehly/spring-view-component#installation The two biggest changes to this re...Discuss·115 readsjte
Thomas Surmannbootifyio.hashnode.dev·May 2, 2023Best Practices for Thymeleaf and Spring BootThymeleaf is the most popular template language in Spring Boot. This article provides a set of best practices to put your own application on a solid foundation to be productive and happy in the long run. #1 Structure your templates Where exactly shou...DiscussSpringboot
salami adeniyi adedejidonneyo.hashnode.dev·Apr 26, 2023Fragment in ThymeleafWhat is Fragment In Thymeleaf Fragments in thyme leaf is a section set apart for reusable purposes in another HTML file. they are separated and reorganized into a single line of code to reuse in another HTML file. The whole idea behind fragments is t...Discuss·6 likes·27 readsThymeleaf