Remove '/resources/**' mapping and default servlet

Remove '/resources/**' mapping since it can cause problems with the
'/**' when the developer defines their own 'resources' sub-folder.

Also remove default servlet config since the resources mapping renders
it redundant.

Issue: #55494446
This commit is contained in:
Phillip Webb
2013-08-23 09:59:40 -07:00
parent e294e67d12
commit a95494fe61
6 changed files with 13 additions and 22 deletions

View File

@@ -2,8 +2,8 @@
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Error</title>
<link rel="stylesheet" th:href="@{/resources/css/bootstrap.min.css}"
href="../../resources/css/bootstrap.min.css" />
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"
href="../../css/bootstrap.min.css" />
</head>
<body>
<div class="container">
@@ -28,4 +28,4 @@
</div>
</div>
</body>
</html>
</html>

View File

@@ -2,8 +2,8 @@
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title th:text="${title}">Title</title>
<link rel="stylesheet" th:href="@{/resources/css/bootstrap.min.css}"
href="../../resources/css/bootstrap.min.css" />
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"
href="../../css/bootstrap.min.css" />
</head>
<body>
<div class="container">
@@ -22,4 +22,4 @@
2012 2:17:16 PM CDT</div>
</div>
</body>
</html>
</html>