Compare commits

...

2 Commits

Author SHA1 Message Date
6c2d29c9c2 fix 2023-05-15 15:49:41 +04:00
51e90b93c0 fix 2023-05-15 14:22:23 +04:00
2 changed files with 15 additions and 1 deletions

View File

@ -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");
}
}

View 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>