
javaEE
ValoneLotus
这个作者很懒,什么都没留下…
展开
-
eclipse 导入其他人的项目时tomcat出现Hibernate错误
之前导师要求导入某个项目,发现出现错误捣鼓了我几天,终于想起来解决方法了。我出现这种情况的原因是mysql版本不一致,我原来的是mysql5.0版本,而在导师机子上的是5.5版本,当我安装5.5版本之后,问题就解决了。大家也可以检查看是不是mysql版本问题。原创 2016-03-03 17:02:26 · 526 阅读 · 0 评论 -
maven 工程启动找不到 Spring ContextLoaderListener 的解决办法
用maven 工程搭建项目,在搭建好之后,运行时却抛出了这样的错误: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.c转载 2016-08-30 14:01:46 · 295 阅读 · 0 评论 -
使用hibernate架构执行插入操作时You have an error in your SQL syntax;
今天同事在写接口时,出现SQL错误com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax原创 2016-08-12 16:33:26 · 497 阅读 · 0 评论 -
ibatis/mybatis 里mysql 查询行号,@
今天在做一个功能用到行号的问题,mysql里没有行号的查询功能,在网上找的set @row_number := 0;select @row_number := @row_number+1 from table where ....这语句在ibatis/mybatis里无法执行,在set @row_number := 0;这一句出错,不要这一句的话没有结果集返回,最后终于找到方法原创 2017-02-09 15:21:02 · 5639 阅读 · 5 评论 -
Could not reserve enough space for object heap
myeclipse运行需要内存比较大的项目时,总会报“Could not reserve enough space for object heap”的错误,可以尝试:1、修改window->preferences->Servers->Tomcat->Tomcat_x optional program arguments : -Xms1000m -Xmx1000...原创 2018-02-10 15:55:40 · 3916 阅读 · 1 评论