原因是使用idea创建的spring boot项目版本为2.2,与freemarker的包不兼容; 解决办法: 更改spring boot 版本为:2.1.1.RELEASE 来源:https://blog.csdn.net/Relax_x/article/details/102778359 标签 Spring boot