解決方式一:下載eclipse相關的freemarker插件
解決方式二:原生解決方式,方法特點無需下載插件,和eclipse編輯html和jsp文件一模一樣
步驟:
1:windows---prefenrences---general---edirors---Files Associations
新增一個*.ftl 文件類型。管理JSP Editor 打開,點擊ok
2:windows---prefenrences---general-----content Types
完成之后無需重啟eclipse,只需重新打開.ftl文件即可。