How to use thymeleaf conditions - if - elseif - else

后端 未结 6 1305
刺人心
刺人心 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:22

    I need else if but all my condition are not so simple that th:switch="${user.role} can works, so I do this:

    Beautiful Goat

    Magnificent Goat

    Goat

提交回复
热议问题