BAEL-651: Fixed the custom voter application

This commit is contained in:
Kevin Gilmore 2017-02-10 20:26:18 -06:00
parent 46a73c7bea
commit 67fcde1009
3 changed files with 5 additions and 5 deletions

View File

@ -18,8 +18,8 @@ import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
//@Configuration @Configuration
//@EnableWebSecurity @EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter { public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired @Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {

View File

@ -6,8 +6,8 @@ import org.springframework.context.annotation.ImportResource;
/** /**
* Created by ambrusadrianz on 09/10/2016. * Created by ambrusadrianz on 09/10/2016.
*/ */
@Configuration //@Configuration
@ImportResource({ "classpath:spring-security.xml" }) //@ImportResource({ "classpath:spring-security-custom-voter.xml" })
public class XmlSecurityConfig { public class XmlSecurityConfig {
public XmlSecurityConfig() { public XmlSecurityConfig() {
super(); super();

View File

@ -4,7 +4,7 @@
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:beans="http://www.springframework.org/schema/beans"
xsi:schemaLocation=" xsi:schemaLocation="
http://www.springframework.org/schema/security http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-4.2.xsd http://www.springframework.org/schema/security/spring-security.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd"> http://www.springframework.org/schema/beans/spring-beans.xsd">