How to pass two objects to use in a form using thymeleaf?

后端 未结 2 1395
小蘑菇
小蘑菇 2020-12-14 02:54

My problem is the following :

I\'ve 2 differents objects that I\'ve to fill from a single form.

With 1 object, I simply do in the newFoo.html:



        
2条回答
  •  遥遥无期
    2020-12-14 03:01

    i used a div tag to surround the form input for my second object and added a th:object..... the controller processed it and added it to the database.

    code......

提交回复
热议问题