0
如果有人在這個問題上有所幫助,我將不勝感激,我正在嘗試使用JSF & Primefaces來運行簡單的Spring引導應用程序。Primefaces與Spring Boot Security不兼容
一切工作正常不使用Spring引導安全,但是當在pom.xml中啓用它,並創建一個WebSecurityConfig類和重寫以下方法:
@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();
}
然後Primefaces分量不rerendring。當註釋這個方法或make .anyRequest()。primitAll()時,它工作正常。
任何人有一個想法如何解決這個問題?
它的''/javax.faces.resource/ **「'不是'/ resources/**' –
我已經添加了新的路徑,但它不工作。我將在這裏給出一個例子,如果我使用p:any組件,那麼啓用Spring boot Security這個組件不會被設置。如果我刪除彈簧安全,那麼所有Prmefaces組件都工作正常。 –