解决方案: 启动类上加@EnableAutoConfiguration(exclude = { FreeMarkerAutoConfiguration.class }) 或者在配置文件添加spring.freemarker.check-template-location=false 转载于:https://www.cnblogs.com/gqymy/p/9915968.html