Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

add image in loggin view spring boot security

@Override
protected void configure(HttpSecurity http) throws Exception {

    String[] staticResources  =  {
        "/css/**",
        "/images/**",
        "/fonts/**",
        "/scripts/**",
    };

    http
        .authorizeRequests()
            .antMatchers(staticResources).permitAll()
            .anyRequest().authenticated()
            .and()
        .formLogin()
            .loginPage("/login").permitAll()
            .and()
        .logout().permitAll();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #image #loggin #view #spring #boot #security
ADD COMMENT
Topic
Name
5+1 =