diff --git a/source/service/src/main/java/org/examproject/tweet/service/SimpleTweetService.java b/source/service/src/main/java/org/examproject/tweet/service/SimpleTweetService.java index 006eaad..aefadc7 100644 --- a/source/service/src/main/java/org/examproject/tweet/service/SimpleTweetService.java +++ b/source/service/src/main/java/org/examproject/tweet/service/SimpleTweetService.java @@ -20,6 +20,8 @@ import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.springframework.context.annotation.Scope; +import org.springframework.stereotype.Service; import twitter4j.PagableResponseList; import twitter4j.Paging; import twitter4j.ResponseList; @@ -41,6 +43,8 @@ /** * @author h.adachi */ +@Service(value="tweetService") +@Scope(value="prototype") public class SimpleTweetService implements TweetService { private static final Log LOG = LogFactory.getLog( diff --git a/source/webapp/pom.xml b/source/webapp/pom.xml index 9849e2a..25b181b 100644 --- a/source/webapp/pom.xml +++ b/source/webapp/pom.xml @@ -37,11 +37,11 @@ - + @@ -194,5 +194,5 @@ - + \ No newline at end of file diff --git a/source/webapp/src/main/webapp/WEB-INF/spring/app-config.xml b/source/webapp/src/main/webapp/WEB-INF/spring/app-config.xml index 27c39c5..35483bd 100644 --- a/source/webapp/src/main/webapp/WEB-INF/spring/app-config.xml +++ b/source/webapp/src/main/webapp/WEB-INF/spring/app-config.xml @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/source/webapp/src/main/webapp/WEB-INF/spring/user/exmp-english-config.xml b/source/webapp/src/main/webapp/WEB-INF/spring/user/tweet-config.xml similarity index 94% rename from source/webapp/src/main/webapp/WEB-INF/spring/user/exmp-english-config.xml rename to source/webapp/src/main/webapp/WEB-INF/spring/user/tweet-config.xml index 1336aad..d1ea5e7 100644 --- a/source/webapp/src/main/webapp/WEB-INF/spring/user/exmp-english-config.xml +++ b/source/webapp/src/main/webapp/WEB-INF/spring/user/tweet-config.xml @@ -14,7 +14,7 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> - + - - + --> - - + --> @@ -90,9 +90,9 @@ scope="prototype"> - - + -->