File tree Expand file tree Collapse file tree
src/main/java/de/rwth/idsg/steve Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package de .rwth .idsg .steve ;
22
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 ;
73import org .apache .cxf .Bus ;
84import org .apache .cxf .BusFactory ;
95import org .apache .cxf .common .logging .LogUtils ;
@@ -42,10 +38,7 @@ public class SteveAppContext {
4238
4339 public SteveAppContext () {
4440 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" );
4942 }
5043
5144 public HandlerCollection getHandlers () throws IOException {
Original file line number Diff line number Diff line change 66import org .springframework .security .config .annotation .authentication .builders .AuthenticationManagerBuilder ;
77import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
88import org .springframework .security .config .annotation .web .builders .WebSecurity ;
9+ import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
910import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
10- import org .springframework .security .config .annotation .web .servlet .configuration .EnableWebMvcSecurity ;
1111
1212/**
1313 * @author Sevket Goekay <goekay@dbis.rwth-aachen.de>
1414 * @since 07.01.2015
1515 */
1616@ Configuration
17- @ EnableWebMvcSecurity
17+ @ EnableWebSecurity
1818public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
1919
2020 @ Autowired
You can’t perform that action at this time.
0 commit comments