skip to Main Content

Thymeleaf does not show data in html page

I’m just studying Thymeleaf and I don’t understand why I can’t show data inside my html code. My Thymeleaf controller is as follows: @Controller public class UserController { @GetMapping("/index") public String getMessage(Model model) { model.addAttribute("welcome", "Hello!"); return "index"; } }…

VIEW QUESTION
Back To Top
Search