点击window–》preference
依次点击General–》Editors–》File Associations,可以看到该页面中没有.ftl类型文件,点击add添加
选择jsp editor
点击General下的content types
展开text–>jsp–>jsp fragment–>add
输入*.ftl(注意:spring boot中导入free mark依赖后,free mark中默认后缀是ftlh,使用默认后缀名这里填*.ftlh)
这里可以设置.ftl文件的编码
应用后,即可新建ftl文件