From 3a25f55bdfcbe3764e9f4b51534f637816904686 Mon Sep 17 00:00:00 2001
From: Paul-Christian Volkmer <paul-christian.volkmer@mni.thm.de>
Date: Wed, 5 Jun 2013 09:35:58 +0200
Subject: [PATCH] Spring component-scan cleanup

Use service and dao beans in application context and controllers in
servlet context. This prevents controller beans from being created twice
in application and servlet context witch causes some trouble in the
past.
---
 src/main/webapp/WEB-INF/spring/spring-main.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/webapp/WEB-INF/spring/spring-main.xml b/src/main/webapp/WEB-INF/spring/spring-main.xml
index f9f031bae..d97cf9c9b 100644
--- a/src/main/webapp/WEB-INF/spring/spring-main.xml
+++ b/src/main/webapp/WEB-INF/spring/spring-main.xml
@@ -29,7 +29,7 @@
 	
 	<import resource="spring-security.xml" />
 
-	<context:component-scan base-package="de.thm.arsnova" />
+	<context:component-scan base-package="de.thm.arsnova.dao,de.thm.arsnova.services" />
 	<context:annotation-config />
 
 	<task:annotation-driven />
-- 
GitLab