Added subfolders to static

This commit is contained in:
neviyn 2021-03-31 23:25:41 +01:00
parent 62b0a1ae0d
commit dc9d022f08
3 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ import java.io.Serializable
@Configuration
class SecurityConfig @Autowired constructor(val userDetailsService: UserDetailsServiceImpl) : WebSecurityConfigurerAdapter() {
override fun configure(http: HttpSecurity) {
http.authorizeRequests().antMatchers("/", "/*.jpg", "/*.svg", "/register").permitAll()
http.authorizeRequests().antMatchers("/", "/img/*", "/js/*", "/register").permitAll()
.anyRequest().authenticated().and()
.formLogin().loginPage("/login").permitAll().and()
.logout().logoutSuccessUrl("/").permitAll().and()

View File

Before

Width:  |  Height:  |  Size: 435 KiB

After

Width:  |  Height:  |  Size: 435 KiB

View File

@ -7,7 +7,7 @@
<div class="container-fluid">
<div class="row justify-content-center mt-3">
<div class="col text-center">
<img alt="landing page" class="w-25 rounded-3" src="" th:src="@{/landing_1.jpg}"/>
<img alt="landing page" class="w-25 rounded-3" src="" th:src="@{/img/landing_1.jpg}"/>
</div>
</div>
<div class="row">