Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.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
Java /login的Spring Oauth antmatcher不工作_Java_Spring_Spring Security - Fatal编程技术网

Java /login的Spring Oauth antmatcher不工作

Java /login的Spring Oauth antmatcher不工作,java,spring,spring-security,Java,Spring,Spring Security,我的媒人看起来像 http .anonymous().and() .authorizeRequests() .antMatchers("/", "/login/", "/login") .permitAll() .anyRequest() .authenticated().and().csrf().disable(); 当我试图从url/login/获取数据时,一切正常。但是当我只使用/login时,需要进行身份验证 哪里有问题?我必须如何编写我

我的媒人看起来像

http
    .anonymous().and()
    .authorizeRequests()
    .antMatchers("/", "/login/", "/login")
    .permitAll()
    .anyRequest()
    .authenticated().and().csrf().disable();
当我试图从url/login/获取数据时,一切正常。但是当我只使用/login时,需要进行身份验证


哪里有问题?我必须如何编写我的匹配程序以获得正确的行为?(/login/login/是允许的)

这在我的系统上运行正常!!当你进入/登录时会得到什么?应用程序是重定向到Facebook登录页面。这在我的系统上运行正常!!当你们进入/登录时你们会得到什么?应用程序是重定向到Facebook登录页面。