Hello, i am using java spring security.I cannot view more than one picture on the page, and as long as i replace the santa image with another one i cannot see this one either.I have searching for 2 hours for solutions for this annoyng thing, please help me .I have ignored all the necessary paths , i have no idea what to do anymore.Also the images are all on the custom login page if that matters.
this is my thymeleaf/html
<!DOCTYPE html>
Изображение здесь
и это моя весенняя конфигурация. У меня есть структура папок ресурсов по умолчанию. Resources> stati c> images> santaclaus.jpeg.
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth
.inMemoryAuthentication()
.withUser("user").password(passwordEncoder().encode("password")).roles("USER").and()
.withUser("admin").password(passwordEncoder().encode("password")).roles("USER", "ADMIN");
}
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage("/login")
.permitAll()
.defaultSuccessUrl("/home", true)
.and()
.logout()
.logoutSuccessUrl("/")
.logoutUrl("/signout");
}
@Override
public void configure(WebSecurity web) throws Exception {
web
.ignoring()
.antMatchers("/resources/**", "/static/**", "/css/**", "/js/**", "/public/**", "/images/**", "/assets/**", "/fonts/**", "/dis/**", "/vendor1/**");
}
//Basic password encoder using bcrypt for encryption.
@Bean
public PasswordEncoder passwordEncoder() {
return new BCryptPasswordEncoder();
}
this вот как я их обслуживаю
@Controller
public class LoginController {
@GetMapping("/login")
public String showLogin() {
return "logintest";
}
@GetMapping("/home")
public String showHome() {
return "home";
}
вот как я вижу остальные 3 изображения введите описание изображения здесь