Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit ef858c7be3346b371ef06e10fa3638b37a19f57d 1 parent a6f6997
graeme authored
View
5 web/WEB-INF/applicationContext.groovy
@@ -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)
}
View
2  web/WEB-INF/dispatcher-servlet.xml
@@ -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.
Something went wrong with that request. Please try again.