控制台日志如下
DEBUG - Creating a new SqlSession
DEBUG - SqlSession [@4529fa91] was not registered for synchronization because synchronization is not active
DEBUG - Closing non transactional SqlSession [@4529fa91]
并没有看出错误原因是什么,可以断定是SQL语句那里的,随即在SQL语句上加上try catch查看
try {
(".addSheet2", body);
} catch (Exception e) {
();
}
catch查看异常如下
: nested exception is : Error evaluating expression 'createDate != null''. Cause: : Malformed OGNL expression: createDate != null' [: Lexical error at line 1, column 20. Encountered: <EOF> after : ""]
检查果然这里有问题
<if test="createDate != null'">#{createDate},</if>