Error reporting of thymeleaf ternary expression in springboot

Ternary expression format" '事件' ? '事件' : '事件' "

Case:

th:action=" '*{id}==null' ?  '@{/admin/types}' : '@{/admin/types/{id}(id=*{id})' " class="ui form">

Problems:

th:action=" '*{id}==null' ?  '/admin/types' : '/admin/types/{id}(id=*{id})' " class="ui form">

Guess you like

Origin blog.csdn.net/weixin_43170526/article/details/108181231