rest security work
This commit is contained in:
parent
1515377c48
commit
66f6623c28
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.spring.security;
|
||||
package org.baeldung.security;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.spring.security;
|
||||
package org.baeldung.security;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -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() {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package org.baeldung.web.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
||||
@Controller
|
||||
public class FooController {
|
||||
//
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package org.baeldung.web.dto;
|
||||
|
||||
public class Foo {
|
||||
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue