一、问题
FreeMarker报错:Backing out from the root directory is not allowed. Templates not found name "../xxx/xxx.ftl"
<#include "../common/header.ftl"/>
原因:FreeMarker没法引入配置模版文件目录的上层文件夹中的模板文件.
二、解决
去掉两点,写成完整目录。比如:
<#include "/admin/common/header.ftl"/>