Compare commits
2 Commits
df5f6487f3
...
6c2d29c9c2
Author | SHA1 | Date | |
---|---|---|---|
6c2d29c9c2 | |||
51e90b93c0 |
@ -62,6 +62,6 @@ public class SecurityConfiguration {
|
||||
}
|
||||
@Bean
|
||||
public WebSecurityCustomizer webSecurityCustomizer() {
|
||||
return (web) -> web.ignoring().requestMatchers("/css/**", "/js/**","/templates/**","/webjars/**");
|
||||
return (web) -> web.ignoring().requestMatchers("/css/**", "/js/**","/templates/**","/webjars/**", "/styles/**", "/*.png");
|
||||
}
|
||||
}
|
||||
|
14
src/main/resources/templates/error.html
Normal file
14
src/main/resources/templates/error.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html
|
||||
lang="en"
|
||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
layout:decorate="~{default}"
|
||||
>
|
||||
<head> </head>
|
||||
<body>
|
||||
<div layout:fragment="content">
|
||||
<div><span th:text="${error}"></span></div>
|
||||
<a href="/">На главную</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user