cos*_*r11 7 html java netbeans thymeleaf
Netbeans HTML检查不喜欢我的百万美元命名空间.
这是我的HTML Thymleaf文件:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head">
<object th:include="fragments/meta :: meta" th:remove="tag" />
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'/>
<link href="/../../../webjars/Semantic-UI/2.0.6/semantic.min.css" rel="stylesheet" th:href="@{/webjars/Semantic-UI/2.0.6/semantic.min.css}"/>
<link href="../../../css/core.css" rel="stylesheet" th:href="@{/css/core.css}" />
<link href="../../../css/product.css" rel="stylesheet" th:href="@{/css/product.css}" />
</head>
<body>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是Netbeans中显示的错误:
我怎样才能让Netbeans与Thymeleaf一起玩得很好?
尝试以这种方式解决它你可能会忽略弹簧安全的事情.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="utf-8"/>
<title>Sample</title>
<link th:href="@{/resources/css/bootstrap.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/resources/css/bootstrap-theme.css}" rel="stylesheet" type="text/css"/>
</head>
Run Code Online (Sandbox Code Playgroud)