I will appreciate if someone help in this matter, I am trying to run a simple Spring boot application using JSF & Primefaces.
Everything is working fine without using Spring Boot Security, but when enable it in pom.xml and create a WebSecurityConfig class and Override the following method:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/resources/**","/index.xhtml")
.permitAll()
.anyRequest().authenticated()
.and()
.formLogin().loginPage("/login.xhtml")
.permitAll()
.and().logout().permitAll();
}
Then the Primefaces component are not rerendring. when comment this method or make .anyRequest().primitAll() then it's working fine.
Anyone has an idea how to solve this?