#11 -- Add error pages
This commit is contained in:
parent
26cf6d0b03
commit
07d6a2118f
@ -1,6 +1,7 @@
|
||||
spring.main.banner-mode=off
|
||||
server.port=8080
|
||||
server.jetty.connection-idle-timeout=1000s
|
||||
admin-password=admin
|
||||
# Available levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
|
||||
logging.level.ru.ulstu=DEBUG
|
||||
logging.level.sun.rmi.transport=off
|
||||
|
13
src/main/resources/templates/error/403.html
Normal file
13
src/main/resources/templates/error/403.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"
|
||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
layout:decorate="~{default}">
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" layout:fragment="content">
|
||||
<h5>Доступ запрещён</h5>
|
||||
<a href="/"><h6>Вернуться на главную</h6></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
13
src/main/resources/templates/error/404.html
Normal file
13
src/main/resources/templates/error/404.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"
|
||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
layout:decorate="~{default}">
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" layout:fragment="content">
|
||||
<h5>Страница не найдена</h5>
|
||||
<a href="/"><h6>Вернуться на главную</h6></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
13
src/main/resources/templates/error/500.html
Normal file
13
src/main/resources/templates/error/500.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"
|
||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
layout:decorate="~{default}">
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" layout:fragment="content">
|
||||
<h5>Ошибка сервера</h5>
|
||||
<a href="/"><h6>Вернуться на главную</h6></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user