---
title: "spring.ftl"
author: "slnddd"
date: "2017-03-02T13:33:21Z"
tags: []
categories: ["Web前端"]
slug: "spring-ftl"
draft: false
lastmod: "2017-03-02T13:33:21Z"
id: 2359842
url: "https://slnddd.iteye.com/blog/2359842"
---

在使用freemaker时，看到了这样的一段，就是引入一个其他的ftl，并创建一个新的命名空间

 

&lt;#import "/spring.ftl" as spr/&gt;

 

但是找遍了工程也没有找到这个文件在哪里

 

后来发现这个是springmvc提供的文件

[spring-framework](https://github.com/spring-projects/spring-framework)/[spring-webmvc](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc)/[src](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src)/[main](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main)/[resources](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main/resources)/[org](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main/resources/org)/[springframework](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main/resources/org/springframework)/[web](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main/resources/org/springframework/web)/[servlet](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main/resources/org/springframework/web/servlet)/[view](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main/resources/org/springframework/web/servlet/view)/[freemarker](https://github.com/spring-projects/spring-framework/tree/master/spring-webmvc/src/main/resources/org/springframework/web/servlet/view/freemarker)/spring.ftl