随笔分类 -  spring

上一页 1 2 3

Cannot resolve class or package 'dbcp' Cannot resolve class 'BasicDataSource'
摘要:在applicationContext.xml中配置数据源时,报错如下: Cannot resolve class or package 'dbcp' Cannot resolve class 'BasicDataSource' 错误原因: 可能是没有导入common-dbcp.jar包,也可能是导 阅读全文

posted @ 2017-05-10 22:13 乐之者v 阅读(3125) 评论(0) 推荐(0)

'org.springframework.beans.factory.xml.XmlBeanFactory' is deprecated
摘要:'org.springframework.beans.factory.xml.XmlBeanFactory' is deprecated XmlBeanFactory这个类已经被摒弃了。可以用以下代替: 比如: 可以修改为: 阅读全文

posted @ 2017-05-08 11:40 乐之者v 阅读(611) 评论(0) 推荐(0)

Spring依赖注入:基于xml配置
摘要:基础接口 BeanFactory、ApplicationContext。 BeanFactory用于创建并管理、获取各种类的对象。 ApplicationContext从BeanFactory派生而来,并拥有更多实际功能。主要方法是getBean()获取Bean对象。 ApplicationCont 阅读全文

posted @ 2017-05-08 11:26 乐之者v 阅读(263) 评论(0) 推荐(0)

Error running : Address localhost:1099 is already in use
摘要:运行报错: Error running : Address localhost:1099 is already in use 解决方法: 打开任务管理器,将后台的java.exe进程都关掉,再次运行就可以了。 阅读全文

posted @ 2017-03-30 17:01 乐之者v 阅读(318) 评论(0) 推荐(0)

The value for the useBean class attribute is invalid.
摘要:报错如下: The value for the useBean class attribute com.JavaBeanTest is invalid. 解决方法: 在JavaBean代码中加入无参数的构造方法即可。如下示: public JavaBeanTest() { } 原因: 可能是缺少pu 阅读全文

posted @ 2017-03-27 10:54 乐之者v 阅读(467) 评论(0) 推荐(0)

上一页 1 2 3

导航