Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring安全性限制了很少的html_Spring_Jsp_Url_Servlets_Spring Security - Fatal编程技术网

Spring安全性限制了很少的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

我们使用的是角形、弹簧靴和弹簧安全。因此,禁用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().antMatchers("/", "/resources/**", "/**/*.html");
}
}