gpt4 book ai didi

intellij-idea - intellij thymeleaf 命名空间 th 未绑定(bind)

转载 作者:行者123 更新时间:2023-12-04 02:40:33 26 4
gpt4 key购买 nike

我正在使用 IntelliJ IDEA,但 thymeleaf 命名空间有问题。我已经创建了包含在其他模板中的员工表单,因此我没有指定命名空间,但是当我运行我的应用程序时它可以正常工作。有什么办法可以改变这种行为。我喜欢自动完成:-)
命名空间“th”未绑定(bind)示例:
Namespace 'th' is not bound

最佳答案

此外,如果您使用 Spring您应该使用以下内容:

<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<title>Hello</title>
</head>
<body>
</body>
</html>

区别在于 DOCTYPE .
Intellij Idea: Thymeleaf namespace unkown

关于intellij-idea - intellij thymeleaf 命名空间 th 未绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32384158/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com