How to use thymeleaf conditions - if - elseif - else

后端 未结 6 1281
刺人心
刺人心 2021-02-07 19:44

I have a little problem, I must return a different choice of a select into a td using thymeleaf, I try the next sentence:



        
6条回答
  •  清歌不尽
    2021-02-07 20:17

    For next time if you want if - elsif -else you can do: (for example I want to know if url on my action object contains confluence then confluence else if it contains jira then jira on th:text)

    It works.

提交回复
热议问题