Relative Content

Tag Archive for javaspringspring-bootthymeleaf

How to get radio th:field value in back-end (binding Thymeleaf)

<input type=”radio” th:field=”*{questoes[__${iter.index}__].respostaCorreta}” th:value=”${alternativa.texto}”> I’m working on a project using Thymeleaf and Spring Boot. In my form, I have a set of radio buttons generated dynamically using Thymeleaf. Each radio button is associated with a text input field, and I’m using th:field and th:value attributes to bind the input values. However, when I submit the […]

How to create both backend and fronted project with java spring boot

It is necessary to create a separate project for java spring boot and frontend and backend. I am doing the frontend, with spring boot thymeleaf (html css bootsrap js). I made the endpoint coming from the backend with Postmande mock server. But I am giving the url manually in the controller. Is there a different way to do this? Or what should happen?