摘要: 新公司的一个CMS项目要用到,这里记录下 一、项目文件图 二、springmvc-servlet.xml 添加 <!-- 定义环境变量文件 --> <bean id="propertyHolder" class="org.springframework.beans.factory.config.Pr 阅读全文
posted @ 2018-04-29 12:20 npe0 阅读(1076) 评论(0) 推荐(0)
摘要: 一、类路径 加载classpath目录下的vm文件,或者maven项目的resources路径下 二、盘路径 通过绝对路径来加载,模版文件位于磁盘中,如:D:\\template\\index.vm 三、properties 通过加载properties文件中的配置,加载类路径下的模版文件 阅读全文
posted @ 2018-04-29 10:38 npe0 阅读(403) 评论(0) 推荐(0)