У меня есть приложение Spring Boot, которое работает на localhost. Но после развертывания .war-файла на моем сервере на некоторых страницах я получаю:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sun Jan 26 15:49:46 CET 2020
There was an unexpected error (type=Internal Server Error, status=500).
Error resolving template [/user/instruction/disable-script], template might not exist or might not be accessible by any of the configured Template Resolvers
На localhost эта страница работает. Проблема только на сервере.

disable-script. html:
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
xmlns:th="http://www.thymeleaf.org"
layout:decorate="~{fragments/user/layout}">
<head>
<title>...</title>
</head>
<body>
<div layout:fragment="content" th:remove="tag">
.....
</div>
</body>
</html>
Фрагмент контроллера:
@RequestMapping(value = "/user/instruction/disable-script", method = RequestMethod.GET)
public String instructionDisableScript(WebRequest request, Model model) {
return "/user/instruction/disable-script";
}
Некоторые страницы на сервере работают. Я понятия не имею, почему некоторые из них выдают эту ошибку 500 ...