
开发中错误
spring_model
总结开发中遇到的问题!
展开
-
在tomcat6.0上部署项目 报错Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules
用Spring tool suite开发的servlet项目不能加载到tomcat6.0服务器,原因是:servlet的版本高了 只要将version="3.0"改成version="2.5",然后重启eclipse即可!!! 具体操作步骤: 找到你的sts:D:\sts\workspace-jee\项目名称\.settings\org.eclipse.wst.common.p原创 2016-01-21 12:34:07 · 944 阅读 · 0 评论 -
The word is not correctly spelled 此问题是STS校验单词问题
The word is not correctly spelled 此问题是STS校验单词拼写造成,如果出在配置文件中,一般会影响到程序的正常执行 解决方法:在STS下的Window--Preference输入spell,然后把第一个复选框“Enable spell checking“给去掉就可以了,如图:原创 2015-12-26 14:38:34 · 1058 阅读 · 0 评论 -
spring Junit下的延迟加载问题(Hibernate)
在使用spring管理junit下的Hibernate时,会出现org.hibernate.LazyInitializationException: could not initialize proxy - no Session,原因大家都知道,当session关闭后,你访问对象中的延迟加载属性,都会报session已关闭的错误。解决办法一般有四种: 1、在关闭session之前,使用Hiber原创 2016-04-20 10:16:17 · 1283 阅读 · 0 评论 -
Failed to read artifact descriptor进行安装maven项目出错
1. 在maven中进行install的时候报出这种错误:clean install -DskipTests=true [INFO] Scanning for projects... [INFO] [INFO] -------------------转载 2016-04-21 15:55:54 · 1543 阅读 · 0 评论 -
The word is not correctly spelled 此问题是eclipse校验单词拼写
The word is not correctly spelled 此问题是eclipse校验单词拼写造成,如果出在配置文件中,一般会影响到程序的正常执行 解决方法:在eclipse下的Window--Preference输入spell,然后把第一个复选框“Enable spell checking“给去掉就可以了,如图:原创 2016-10-03 13:44:32 · 3901 阅读 · 0 评论 -
org.dbunit.dataset.NoSuchColumnException: t_role.ROLE_TYPE - (Non-uppercase input column: role_type
dbunit有一个大大的BUG,即会解释不了MySQL表的结构,在使用@DataSet准备数据时,会抛出类似如下的异常: 使用dbunit来测试Dao时,如果使用hibernate作为持久层会出现org.dbunit.dataset.NoSuchColumnException: t_role.ROLE_TYPE - (Non-uppercase input column: role_ty原创 2016-04-20 20:48:27 · 3891 阅读 · 1 评论