标签: spring-boot thymeleaf
我有"/login" servlet和login.html百里香模板。
"/login"
login.html
当我执行@{/login}操作时,IntelliJ无法识别它属于Servlet。
@{/login}
它想将@{login.html}作为动作属性。从而导致向login.html的表单提交错误。使得th:action属性的使用甚至不如旧的action=""
@{login.html}
th:action
action=""
我不希望我的所有URL都以.html结尾,并且我无法从所有thymeleaf模板中删除文件扩展名。那太荒谬了。有什么解决方案?
.html