Intellij无法识别th:action属性

时间:2019-09-24 11:19:05

标签: spring-boot thymeleaf

我有"/login" servlet和login.html百里香模板。

当我执行@{/login}操作时,IntelliJ无法识别它属于Servlet。

enter image description here

它想将@{login.html}作为动作属性。从而导致向login.html的表单提交错误。使得th:action属性的使用甚至不如旧的action=""

可靠

enter image description here

我不希望我的所有URL都以.html结尾,并且我无法从所有thymeleaf模板中删除文件扩展名。那太荒谬了。有什么解决方案?

0 个答案:

没有答案