【发布时间】:2017-06-21 21:38:42
【问题描述】:
我正在尝试在 @Formula(Spring 启动应用程序)中使用计数查询
@Formula("select count(te.id) from task_execution te")
但是在启动服务器时,出现异常
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
说我在查询中有语法错误,并且在日志中打印了以下查询:
select count(te.id) from task_execution te as formula6_ from node_info nodeinfo0
我的问题from node_info nodeinfo0 来自哪里?我的 NodeInfo 类与 TaskExecution 类没有任何关系
谢谢
【问题讨论】:
标签: java mysql spring-boot spring-data