partly working security: registration form, authorization, simple authentification
[proteocache.git] / server / compbio / spring / WebConfig.java
index e7f0be2..0a0de7a 100644 (file)
@@ -3,6 +3,7 @@ package compbio.spring;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.ComponentScan;
 import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.ImportResource;
 import org.springframework.web.servlet.config.annotation.EnableWebMvc;
 import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
 import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@@ -10,6 +11,7 @@ import org.springframework.web.servlet.view.InternalResourceViewResolver;
 
 @Configuration
 @EnableWebMvc
+@ImportResource("WEB-INF/spring-security.xml")
 @ComponentScan(basePackages = "compbio.controllers")
 public class WebConfig extends WebMvcConfigurerAdapter {