java锚标记重定向到无效url
这可能是个愚蠢的问题。但我不知道发生了什么。下面的URL是我在客户应用程序中配置为重定向的示例
<a href="http://cpolo.in/admin/about-us" class="btn_a medium_btn bottom_space">
我只是使用spring mvc项目。当用户点击这个URL时,它很少直接进入下面的URL
http://cpolo.in/admin/login
我的安全配置是
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests().antMatchers("/admin/**")
.access("hasAnyRole('SUPER ADMIN','ADMIN','STAFF')").and()
.formLogin().loginPage("/login").failureUrl("/login?error")
.defaultSuccessUrl("/admin/orderdetails")
.usernameParameter("user").passwordParameter("pass").and()
.logout().logoutSuccessUrl("/login?logout").and().csrf().and()
.exceptionHandling().accessDeniedPage("/403").and()
.sessionManagement().invalidSessionUrl("/login");
http.authorizeRequests().antMatchers("/api/**").permitAll().and()
.csrf().disable();
}
我一直在使用SpringMVC、Java8和Apache8服务器。可能是我的错
共 (0) 个答案