随笔分类 -  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 阅读(3102) 评论(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 阅读(592) 评论(0) 推荐(0) 编辑

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

posted @ 2017-05-08 11:26 乐之者v 阅读(254) 评论(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 阅读(312) 评论(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 阅读(459) 评论(0) 推荐(0) 编辑

上一页 1 2 3
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示