严重: Servlet.service() for servlet jsp threw exception,大神求解啊

严重: Servlet.service() for servlet jsp threw exception,大神求解啊,第1张

HQL拼写有问题

org.hibernate.hql.ast.QuerySyntaxException: expecting IDENT, found '2' near line 1, column 50 [from com.online.doc.domain.DocInfo where STATUS=:2]

HQL映射出现了错误

STATUS=:2

这里的问题,2你再检查一下,如果是数据,不用带冒号(:),如果是变量,设置一个新的名称,例如STATUS=:status

然后在Query里面进行设置

具体类型不知,估计这两个足够了,建设Query q = ......

q.setString("status","2")

q.setInt("status",2)

看看你的类型是什么吧

Navicat设定mysql定时任务步骤示例

http://jingyan.baidu.com/article/4dc40848f3098fc8d946f19a.html

你看一下这个文件,\xampp\phpMyAdmin目录下的config.inc.php

$cfg['Servers'][$i]['host'] = 'localhost' // MySQL hostname or IP address

$cfg['Servers'][$i]['controluser'] = 'root' // MySQL control user settings

$cfg['Servers'][$i]['controlpass'] = 'password'// password的为MySQL的root登陆密码

$cfg['Servers'][$i]['user'] = 'root'// MySQL user

$cfg['Servers'][$i]['password'] = 'password' // MySQL password (only needed

$cfg['blowfish_secret'] = 'abc'//abc为任意字符

然后你看一下密码和你用命令行进行MySQL的一样不?


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/6184083.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-17
下一篇 2023-03-17

发表评论

登录后才能评论

评论列表(0条)

保存