How to use eclipse to create ftl file

Today, I learned spring combined with freemarker and reported an error when creating a .ftl file:






Then I searched the Internet for how to create a .ftl file, recorded it, and didn't need to look for it later.

Click Window, select Reference, and the following box will pop up.
Find: General--Editors--File Associations


as follows, if there is a *.ftl file, you don't need to click Add above. If not, click Add to create a new








one and then click the Add button at the bottom of this page:








Then select General--Content Types:






This is done, then create a new helloFtl.ftl file








can't go wrong



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325635705&siteId=291194637