spring配置freemarker视图解析器

freemarker是一个利用ftl模板和ftl标签来生成自己想要的页面,楼主用了freemarker之后感觉比jsp好用。下面是springmvc配置freemarker视图解析器:

class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"
parent="viewResolver">




*.ftl
*.html











class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
Required for Freemarker to work in web tier




class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean">



/WEB-INF/html/
/WEB-INF/freemarker/
classpath:/saic_macro/
classpath:/csc_common/



classpath:conf/freemarker.properties



















你可能感兴趣的:(spring配置freemarker视图解析器)