freemarker错误Exception message was already printed; see it above ...]

时间:2024-05-19 14:04:38

错误信息

freemarker错误Exception message was already printed; see it above ...]

从这个信息可以看出说是们的模板错误里面的${table.ClassName}错误

在pojomo.ftl的第六行有个错误

 

freemarker错误Exception message was already printed; see it above ...]

进来后发现只不过是个el表达式用到了我table类里面的getClassName方法

下来看一下我的table类

freemarker错误Exception message was already printed; see it above ...]

用到了这个方法,那为什么会错误呢?

牵扯到   El表达式以及Getting和Setting方法中大小写问题

看看这个就明白了

freemarker错误Exception message was already printed; see it above ...]

修改或的模板:

freemarker错误Exception message was already printed; see it above ...]

 

运行一切正常