Answers for "add image in loggin view spring boot security"

0

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();
}
Posted by: Guest on February-22-2021

Code answers related to "add image in loggin view spring boot security"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language