- 博客(11)
- 收藏
- 关注
原创 org.hibernate.hql.ast.QuerySyntaxException
执行hibernateTemplate.find()方法时出现:org.hibernate.hql.ast.QuerySyntaxException,即查询语法异常下面为我的hql:String hql = "SELECT DISTINCT f FROM Function f"; hql += "LEFT OUTER JOIN f.roles r"; hql +...
2020-02-22 18:44:45 143
原创 ERROR:ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
ERROR:ORA-12514: TNS:listener does not currently know of service requested in connect descriptorERROR:ORA-12514: TNS:监听程序当前无法识别连接描述符中请求的服务以下是连接Oracle数据库的语句:sqlplus scott/scott@192.168.100.18:1521/o...
2020-02-18 08:26:20 177
原创 AJAX异步请求如何刷新当前页面
异步请求代码如下:$.post( "${pageContext.request.contextPath}/staffAction_delete.action", {ids:ids}, function (data) { if(data.success == "success"){ $.messager.alert("提示","人员作废成功!",...
2020-01-29 23:20:53 2792
原创 java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
导入如下jar包即可:commons-beanutils.jarcommons-lang.jarezmorph-1.0.6.jarjson-lib-2.4-jdk15.jar
2020-01-28 22:44:36 283
原创 【Bug记录】java.lang.IllegalArgumentException: node to traverse cannot be null!
java.lang.IllegalArgumentException: node to traverse cannot be null!hibernate 中执行HQL查询时出现空返回值错误,大多是hql语句书写错误导致,特别注意from后面有没有加上空格。...
2020-01-26 11:18:27 96
原创 写pageContext.request.contextPath时没有提示
在Tomcat安装目录的lib包下面找到jsp-api.jar和servlet-api.jar这两个jar包,然后导入项目的lib中即可。
2020-01-26 10:33:18 1585 2
原创 在IDEA新建项目找不到persistence选项
在IDEA新建项目通过View–>Tool Windows–>下拉列表中找不到persistence选项解决:可以使用快捷键Ctrl+Alt+Shift+s打开Project Structure界面,点击Modules,点击最近的+号按钮,选择JPA,然后点击Apply OK。...
2020-01-25 19:35:15 1921
原创 【Bug记录】org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessi
编写好applicationContext.xml后启动Tomcat7.0, 出现以下错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [applicationContex...
2020-01-25 08:51:31 328 1
原创 【Bug记录】ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables opt ion so it ca
cmd中用了mysqld --skip-grant-tables后出现下面错误:ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement这时输入:flush privileges;即可...
2020-01-24 20:33:09 210
原创 【Bug记录】Caused by: struts.apache.org - Class: java.net.AbstractPlainSocketImpl
连上网就不会出现这种错误
2020-01-24 09:39:51 381
原创 Request processing failed;DataIntegrityViolationException
HTTP Status 500 - Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException上传图片时,期望是MultipartHttpServletRequest 类型,传过来总是org.apache.catalina.connector.Re...
2020-01-13 13:51:14 227
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人