您的位置:首页 > 产品设计 > UI/UE

org.hibernate.QueryException: Space is not allowed after parameter prefix ':'

2015-11-22 09:03 549 查看
spring mvc + Hibernate4x + maven 抛异常报错:
[code]exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.QueryException: Space is not allowed after parameter prefix ':'
root cause
org.hibernate.QueryException: Space is not allowed after parameter prefix ':'

解决-->引用占位符:的前后不允许有空格。

error:
[code]...AND apply.startTime >=: startTime1 AND apply.endTime <=: endTime1
correct:[/code]
AND apply.startTime >=:startTime1 AND apply.endTime <=:endTime1

[/code]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: