我得到以下例外: -
[13,13]算术表达式中缺少左表达式.[14,14]算术表达式中缺少正确的表达式.
请帮我分析一下这个问题.
PS如果我用我的代码中的select*替换我的代码中的上述查询,它工作正常.
Exception Description: Syntax error parsing [select count(*) from Student s ].
[13, 13] The left expression is missing from the arithmetic expression.
[14, 14] The right expression is missing from the arithmetic expression.
java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Syntax error parsing [select count(*) from Student s ].
[13, 13] The left expression is missing from the arithmetic expression.
[14, 14] The right expression is missing from the arithmetic …Run Code Online (Sandbox Code Playgroud) 我想给我的消费者一些时间来重新启动,这样就不会发生不必要的重新平衡。我怎样才能做到这一点?在关闭的情况下,我希望复制能够出现,并且一段时间后如果消费者没有备份,则应该发生重新平衡,否则不会。
def testSession = Action {
implicit request =>
val currentTimes = Calendar.getInstance().getTimeInMillis()
val validTimes = Long.parseLong(request.session.get("validTill").getOrElse("0"))
if(currentTimes>validTimes)
{
Ok("Session expired, Please log-in again")
}
else
{
//insert code here to call def saveDemographicDetailsBrowser = Action{}
}
Run Code Online (Sandbox Code Playgroud)
如果登录尚未过期,我需要在else部分插入代码以调用其他一些操作.接收json并命中的动作保存db中的数据.