Spring安全性限制了很少的html
我们使用的是角形、弹簧靴和弹簧安全。因此,禁用HTML文件的web安全性,但要限制某些HTML文件,如story.HTML。如何使用URL模式。index.html没有安全性,story.html需要安全性Spring安全性限制了很少的html,spring,jsp,url,servlets,spring-security,Spring,Jsp,Url,Servlets,Spring Security,我们使用的是角形、弹簧靴和弹簧安全。因此,禁用HTML文件的web安全性,但要限制某些HTML文件,如story.HTML。如何使用URL模式。index.html没有安全性,story.html需要安全性 @Override public void configure(WebSecurity web) throws Exception { // Filters will not get executed for the resources web.ignoring().antM
@Override
public void configure(WebSecurity web) throws Exception {
// Filters will not get executed for the resources
web.ignoring().antMatchers("/", "/resources/**", "/**/*.html");
}
}