1 关于Map声明
应该
Map<String,Object> root = new HashMap<String,Object>();
不要
Map root = new HashMap();
2 关于log信息的输出。
private static final Logger log = LoggerFactory.getLogger(StaticAct.class);
try {
...
}
catch (TemplateException e) {
log.error("static index error!", e);
try {
...
}
catch (TemplateException e) {
log.error("static index error!", e);
}