Permalink
Browse files

defined the beans in BeanBuilder instead

git-svn-id: https://svn.codehaus.org/grails/trunk@8201 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
  • Loading branch information...
1 parent a6f6997 commit ef858c7be3346b371ef06e10fa3638b37a19f57d graeme committed Jan 16, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −0 web/WEB-INF/applicationContext.groovy
  2. +0 −2 web/WEB-INF/dispatcher-servlet.xml
@@ -1,3 +1,8 @@
+import org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping
+import com.example.mvc.WelcomeController
+
beans {
hello(String, "hello world")
+ handlerMapping(ControllerClassNameHandlerMapping)
+ welcomeController(WelcomeController)
}
@@ -4,7 +4,5 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
- <bean id="handlerMapping" class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
- <bean id="welcomeController" class="com.example.mvc.WelcomeController" />
</beans>

0 comments on commit ef858c7

Please sign in to comment.