Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc thymeleaf代码完成不工作intellij 14_Spring Mvc_Intellij Idea_Thymeleaf_Intellij 14 - Fatal编程技术网

Spring mvc thymeleaf代码完成不工作intellij 14

Spring mvc thymeleaf代码完成不工作intellij 14,spring-mvc,intellij-idea,thymeleaf,intellij-14,Spring Mvc,Intellij Idea,Thymeleaf,Intellij 14,我试图将thymeleaf模板引擎与SpringMVC和Intellij14一起使用,但代码完成不起作用。请帮帮我 <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <title>Spring Core Online Tutorial</title> <meta http-equiv="Content-Type" cont

我试图将thymeleaf模板引擎与SpringMVC和Intellij14一起使用,但代码完成不起作用。请帮帮我

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <title>Spring Core Online Tutorial</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

  <link href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.4/css/bootstrap.min.css"
        th:href="@{/webjars/bootstrap/3.3.5/css/bootstrap.min.css}"
        rel="stylesheet" media="screen"/>

  <script src="http://cdn.jsdelivr.net/webjars/jquery/2.1.4/jquery.min.js"
          th:src="@{/webjars/jquery/2.1.4/jquery.min.js}"></script>

  <link href="../static/css/spring-core.css"
        th:href="@{css/spring-core.css}" rel="stylesheet" media="screen"/>
</head>

<body>
<div class="container">
  <h1>Hello World</h1>
  <h2>This is my Thymeleaf index page. This is my changed.</h2>
</div>
</body>
</html>

SpringCore在线教程
你好,世界
这是我的百里香索引页。这是我的零钱。

intellj idea 14完全支持百里叶。这里缺少的部分是名称空间的使用

<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">


在模板中使用此选项,您将获得intellij完成。希望这能回答你的问题。谢谢

我花了一天的时间才意识到为什么我的项目无法完成。我拼错了名称空间名称(
www.
被遗漏)。谢谢