Skip to content

Instantly share code, notes, and snippets.

@rohman
Created April 9, 2013 23:27
Show Gist options
  • Save rohman/5350297 to your computer and use it in GitHub Desktop.
Save rohman/5350297 to your computer and use it in GitHub Desktop.
Ulang Spring mvc
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
<context:component-scan base-package="id.web.rohman.ulangspring"></context:component-scan>
<bean id="velocityConfig"
class="org.springframework.web.servlet.view.velocity.VelocityConfigurer"
p:resourceLoaderPath="/WEB-INF/templates/velocity/"/>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.velocity.VelocityViewResolver"
p:cache="true"
p:dateToolAttribute="dateTool"
p:prefix=""
p:suffix=".html"/>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment