方法-:
<!--freemarker 注入全局变量--> <bean id="freemarkerConfiguration" class="org.springframework.beans.factory.config.PropertiesFactoryBean"> <property name="location" value="classpath:advtopic.properties" /> </bean> <!-- freemarker 相关 --> <bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> <property name="templateLoaderPath" value="/WEB-INF/view/"/> <property name="defaultEncoding" value="utf-8"/> <property name="freemarkerSettings"
freemark 全局变量 定义 不生效
最新推荐文章于 2024-03-30 03:02:05 发布