File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
src/main/java/de/rwth/idsg/steve Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
package de .rwth .idsg .steve ;
2
2
3
- import de .rwth .idsg .steve .config .BeanConfiguration ;
4
- import de .rwth .idsg .steve .config .OcppConfiguration ;
5
- import de .rwth .idsg .steve .config .SecurityConfiguration ;
6
- import de .rwth .idsg .steve .config .WebSocketConfiguration ;
7
3
import org .apache .cxf .Bus ;
8
4
import org .apache .cxf .BusFactory ;
9
5
import org .apache .cxf .common .logging .LogUtils ;
@@ -42,10 +38,7 @@ public class SteveAppContext {
42
38
43
39
public SteveAppContext () {
44
40
springContext = new AnnotationConfigWebApplicationContext ();
45
- springContext .register (BeanConfiguration .class );
46
- springContext .register (OcppConfiguration .class );
47
- springContext .register (SecurityConfiguration .class );
48
- springContext .register (WebSocketConfiguration .class );
41
+ springContext .scan ("de.rwth.idsg.steve.config" );
49
42
}
50
43
51
44
public HandlerCollection getHandlers () throws IOException {
Original file line number Diff line number Diff line change 6
6
import org .springframework .security .config .annotation .authentication .builders .AuthenticationManagerBuilder ;
7
7
import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
8
8
import org .springframework .security .config .annotation .web .builders .WebSecurity ;
9
+ import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
9
10
import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
10
- import org .springframework .security .config .annotation .web .servlet .configuration .EnableWebMvcSecurity ;
11
11
12
12
/**
13
13
* @author Sevket Goekay <goekay@dbis.rwth-aachen.de>
14
14
* @since 07.01.2015
15
15
*/
16
16
@ Configuration
17
- @ EnableWebMvcSecurity
17
+ @ EnableWebSecurity
18
18
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
19
19
20
20
@ Autowired
You can’t perform that action at this time.
0 commit comments