自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 未能启动组件的问题 by: java.lang.IllegalArgumentException: Failed to register servlet with name 'dispatcher'.

困扰已久的bug,百度无结果,谷歌有3,4篇文章跟我的一样,也没得到答案。后来经过分析,bug得到解决。分析:未能启动组件异常::Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[查看原因:Caused by: java.lang.IllegalArgumentEx...

2018-07-08 10:26:11 2445

原创 注解类型异常:@ComponentScan ANNOTATION type filter requires an annotation typ

遇到bug是这样的:Caused by: java.lang.IllegalArgumentException: @ComponentScan ANNOTATION type filter requires an annotation type: interface org.springframework.web.servlet.mvc.Controller 解决方案:要的是注解类型,不...

2018-07-02 22:57:56 6783 3

原创 注解解析不到异常好像,java.lang.annotation.AnnotationFormatError: Invalid default:

整合SSM出现这么一个bug:Caused by: java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.mybatis.spring.annotation.MapperScan.factoryBean() at java.lang.reflect.Meth...

2018-07-02 22:48:34 17689

原创 无效状态异常:java.lang.IllegalStateException

java.lang.IllegalStateException无效状态异常Cannot convert value of type 'com.jt.sys.dao.impl.SysConfigDaoImpl' to required type 'com.jt.sys.dao.SysConfigDao' for property 'SysConfigDao': no matching editors...

2018-06-23 23:02:21 5902

原创 不可写属性异常:Caused by: org.springframework.beans.NotWritablePropertyException:

分析得知:Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'jdbcUser' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property 'jdbcUser' is not writable ...

2018-06-21 22:57:28 5434 1

原创 Caused by: java.lang.ClassNotFoundException:

分析:Caused by: java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource.class得知找不到类,看spring-config.xml,看class发现错误,改为正确的即可。配置还是要细心一点。org.springframework.beans.factory.CannotLoadBeanCl...

2018-06-21 22:47:41 1560

原创 Bean对象注入失败:org.springframework.beans.factory.NoSuchBeanDefinitionException:

初学spring,发现如下报错:看spring-config.xml,bean标签id发现不对,改为正确的即可。org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'penDataSource02' available at org.springframework.beans.factory...

2018-06-21 22:34:48 952

原创 Caused by: java.lang.NoClassDefFoundError:

初学spring,碰到如下报错,解决:class获取不到。去spring-config.xml 的class的路径,发现名字写错了,不能Ctrl 点击进去类中,改为正确的就好了org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [beans.OPenDataSource] for b...

2018-06-21 22:28:43 1948

原创 Cause: java.sql.SQLException: Invalid value for getInt() - 'P000011'

写mybatis 练习,出现如下错误:分析:java.sql.SQLException: Invalid value for getInt() - 'P000011'原来是getInt(),类型有误,改为String类型解决。rg.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause:...

2018-06-17 12:45:51 2587

原创 Caused by: java.lang.IllegalArgumentException:

今天做一个mybatis练习,报如下错误:后来看别人博客说的把resultMap改为resultType.,不对有问题,再看resultmap=OrderRM,和上面的ID,原来是写错了,两个对应不起来,才报这样的错误。记录下来,免的下次犯错。org.apache.ibatis.builder.IncompleteElementException: Could not find result ma...

2018-06-17 12:37:33 1764

原创 org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.异常解决办法

今天写mybatis面向接口代码,碰到这种异常,细看是说找不到User这个类,或者类型异常。在sqlMapperConfig.xml配置<typeAliases>别名即可。org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.### The error may exist ...

2018-06-16 23:29:59 20044 3

原创 eclipse简单修改端口方法

今天导入项目问题很多,这不一个端口问题出来了,浏览器访问只能用localhost:8080访问,到Tomcat目录下找到conf文件夹下的server.xml文件,打开发现端口已经被我修改为80,用这里的启动服务,浏览器输入localhost正常访问显示猫。很奇怪,又修改eclipse工程的最下面的servers的server文件,修改端口也不管用,百度得知可以这样简单修改,双击servers下的...

2018-06-11 00:17:27 11345

原创 Tomcat初学情况注意

最近刚学到servelt,出现这种情况:如果Tomcat服务器启动状态下,移除发布的项目,会报如下错误:java.lang.IllegalArgumentException: Document base D:\ws1803\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\day13 does not exist or i...

2018-06-10 23:01:07 255

原创 Tomcat 无法启动?提示Multiple Contexts have a path of "/". 多个相同的路径“/”

今天遇到Tomcat 无法启动?提示如下:Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/". 多个相同的路径“/”?解决方法:找到eclipse项目下的servers下的server.xml文件,找到如下代码:<Con...

2018-06-10 22:41:24 501

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除