rest security work

This commit is contained in:
Eugen 2013-05-27 18:07:51 +03:00
parent 1515377c48
commit 66f6623c28
7 changed files with 31 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import org.springframework.context.annotation.ImportResource;
@Configuration
@ImportResource({ "classpath:webSecurityConfig.xml" })
@ComponentScan("org.baeldung.spring.security")
@ComponentScan("org.baeldung.security")
public class SecSecurityConfig {
public SecSecurityConfig() {

View File

@ -0,0 +1,14 @@
package org.baeldung.spring.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan("org.baeldung.web")
public class WebConfig {
public WebConfig() {
super();
}
}

View File

@ -0,0 +1,8 @@
package org.baeldung.web.controller;
import org.springframework.stereotype.Controller;
@Controller
public class FooController {
//
}

View File

@ -0,0 +1,5 @@
package org.baeldung.web.dto;
public class Foo {
}

View File

@ -15,7 +15,7 @@
<logout />
</http>
<beans:bean id="mySuccessHandler" class="org.baeldung.spring.security.MySavedRequestAwareAuthenticationSuccessHandler" />
<beans:bean id="mySuccessHandler" class="org.baeldung.security.MySavedRequestAwareAuthenticationSuccessHandler" />
<authentication-manager alias="authenticationManager">
<authentication-provider>