gpt4 book ai didi

spring - IntelliJ 中 Spring 的 Thymeleaf - URI 未注册

转载 作者:行者123 更新时间:2023-12-02 22:57:37 25 4
gpt4 key购买 nike

我的 home.html 文件显示错误:URI 未在 IntelliJ 中注册(设置|语言和框架|架构和 DTD)。

包含命名空间的 html 文件是

<!DOCTYPE html><html lang="en" xmlns:th="http://www.thymeleaf.org"> 

我尝试获取外部资源,但这不起作用

最佳答案

运行代码时,该错误不是问题,但 IntelliJ 无法为您提供 th:* 函数的代码完成。

这是 JetBrains 有意为之的,因为他们在此指定: https://www.jetbrains.com/help/idea/thymeleaf.html

To be able to use the Thymeleaf support in IntelliJ IDEA, make sure that the Thymeleaf plugin is enabled. (This plugin is bundled with the IDE and enabled by default.)

在页面顶部,写着:

This feature is only supported in the Ultimate edition.

我还没有找到可以为您提供 Thymeleaf 支持的社区版插件,但 Thymeleaf 可以完美地工作,只是您不会从 IDE 获得任何帮助

关于spring - IntelliJ 中 Spring 的 Thymeleaf - URI 未注册,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38730992/

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