又是一个很简单的错误,freemarker不能再html文件内写,只能在ftl文件中写!!! 另外提醒一点,在springboot中,html文件放在static文件夹中,而ftl文件放在templates文件夹中。