- 浏览: 702766 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (362)
- java基础 (33)
- html/css+div/javascript (17)
- Ajax/XML/JSON/XSL (7)
- JQuery (11)
- Extjs (1)
- JSP/Servlet (19)
- MVC模式 (4)
- struts 1 (17)
- Struts 2.3.4 (17)
- Spring 3.2 (26)
- Springmvc (3)
- Hibernate 4.1 (21)
- ibatis (6)
- Velocity模板语言 (2)
- Rose框架 (5)
- EJB (1)
- JUnit测试 (2)
- 数据库DB (24)
- 重构 / 设计模式 (3)
- 开发工具IDE (37)
- 数据结构与算法设计 (3)
- Android (12)
- Linux (4)
- bug集合 (29)
- 缓存技术(redis) (3)
- Lucene全文索引 (15)
- maven3.0.5 (4)
- 小工具集合 (18)
- 面试题 (5)
- 闲聊 (11)
- 其他 (4)
- 接口API (2)
- work (2)
- Flex (0)
- JMS (1)
- 开源项目集合 (1)
- 技术博客 (1)
- 分类04 (0)
- 分类05555 (0)
最新评论
-
小小小羊:
好屌...
java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$Refle -
liubinli2005:
这个可以脱底spring。单独使用吗?
DAO层:jade -
cangbaotu:
我觉得对于开发者来说,能脚本化编写爬虫是一件挺开心的事情( ̄▽ ...
网页爬取 -
asjava:
很好的文章, 但每段代码清单都重复了一次.
spring 事务 -
xia635317478:
jethypc 写道验证码的session无法传过去啊 还是我 ...
登陆验证码(struts2实现)
struts1中
http://localhost:8089/bupt_oa/notes.do?actions=list请求报错!
动态代理访问bean为:/notes时,因为没有转化为实际处理的Action,所以报错
情况一、
application-config-core.xml:
applicationContext-struts.xml
情况二、
Action类没有继承Action类及其子类
2.
ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
UserService service =(UserService) ac.getBean( UserServiceImpl.class);
正确:
ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
UserService service =(UserService) ac.getBean( UserService.class);
http://localhost:8089/bupt_oa/notes.do?actions=list请求报错!
动态代理访问bean为:/notes时,因为没有转化为实际处理的Action,所以报错
1.org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named "" must be of type [org.apache.struts.action.Action]
情况一、
application-config-core.xml:
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn"> <set-property property="contextConfigLocation" value="/WEB-INF/classes/spring/core/applicationContext-struts.xml" /> </plug-in>
applicationContext-struts.xml
<!-- add by mohy 邮件 信息 便签 --> <import resource="classpath*:spring/bupt/notes/applicationContext-notes-action.xml"/>
情况二、
Action类没有继承Action类及其子类
2.
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userService' must be of type [com.anping.service.impl.UserServiceImpl], but was actually of type [$Proxy15]错误:
ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
UserService service =(UserService) ac.getBean( UserServiceImpl.class);
正确:
ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
UserService service =(UserService) ac.getBean( UserService.class);
发表评论
-
Tomcat:IOException while loading persisted sessions: java.io.EOFException
2013-11-14 17:39 874Tomcat:IOException while loadin ... -
'sessionFactory' or 'hibernateTemplate' is required
2013-08-18 21:35 832'sessionFactory' or 'hibernateT ... -
column: id (should be mapped with insert="false" update="false")
2013-08-18 16:59 2043Spring集成Hibernate:column: id (s ... -
Unsupported major.minor version 51.0
2013-08-17 10:01 1053Unsupported major.minor version ... -
SVN无法提交-RA layer request failed
2013-08-05 09:12 1262SVN无法提交-RA layer request failed ... -
类是ThreadPoolExecutor:时不时的就会在workerDone(this);
2013-07-05 00:17 2671类是ThreadPoolExecutor:时不时的就会在wo ... -
Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
2013-03-21 15:34 1979一、bug:Server Tomcat v6.0 Server ... -
java.lang.UnsupportedClassVersionError: Bad version number in .class file
2013-03-19 10:33 956bug: java.lang.UnsupportedClas ... -
找不到包:javax.servlet.annotation.WebServlet
2013-03-18 16:54 14840找不到包:javax.servlet.annotation.W ... -
异常:Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntit
2013-03-08 23:47 3404异常:Unable to instantiate defau ... -
java.sql.SQLException: Can't call commit when autocommit=true
2013-01-29 11:00 5686当我在数据库更新, ... -
java.security.NoSuchAlgorithmException: AES KeyGenerator not available
2013-01-28 10:23 12167java.security.NoSuchAlgorithmEx ... -
java.util.MissingResourceException: Can't find bundle for base name systemConfig
2013-01-28 10:19 23572bug:java.util.MissingResourceEx ... -
Cannot find message resources under key org.apache.struts.action.MESSAGE
2013-01-15 14:53 1072异常1: Cannot find message resour ... -
org.springframework.dao.InvalidDataAccessApiUsageException: OracleLobCreator
2013-01-11 15:35 1767org.springframework.dao.Invalid ... -
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity
2013-01-11 15:10 8329引用org.springframework.orm.hiber ... -
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema n
2013-01-10 11:06 2722Configuration problem: Unable t ... -
java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$Refle
2013-01-10 10:57 10323java.lang.NoClassDefFoundError ... -
java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
2013-01-10 10:53 1021java.lang.NoClassDefFoundError: ... -
java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice
2013-01-10 10:50 1002整合SSH的时报错误: java.lang.NoClassDe ...
相关推荐
org.springframework.flex-1.0.3.RELEASE.jar.zip用于JAR包,org.springframework.flex-1.0.3.RELEASE.jar.zip用于JAR包org.springframework.flex-1.0.3.RELEASE.jar.zip用于JAR包org.springframework.flex-1.0.3....
org.springframework.beans-3.0.4.RELEASE.jar org.springframework.context.support-3.0.4.RELEASE.jar org.springframework.context-3.0.4.RELEASE.jar org.springframework.core-3.0.4.RELEASE.jar org....
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionInterceptor#0': Error setting property values; nested ...
aopalliance-1.0.jar,org.springframework.aop-3.0.0.RELEASE.jar,org.springframework.jdbc-3.0.0.RELEASEorg.springframework.beans-3.0.0.RELEASE.jar等
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController' defined in ServletContext resource [/WEB-INF/springMVC-servlet.xml]: Error ...
org.springframework.beans-3.0.5.RELEASE.jar org.springframework.context-3.0.5.RELEASE.jar org.springframework.context.support-3.0.5.RELEASE.jar org.springframework.core-3.0.5.RELEASE.jar org.spring...
org.springframework.beans-3.0.0.M4.jar
org.springframework.beans-3.0.5工程所需jar包,com.springsource.net.sf.cglib-2.2.0.jar、 com.springsource.org.apache.commons.logging-1.1.1.jar、 javax.inject.jar、 javax.servlet.jsp.jar、 org.spring...
9. **Integration with other Spring Modules**:`org.springframework.web.jar`与Spring框架的其他模块紧密集成,如Spring Core、Spring Beans、Spring AOP等,共同构建出一个完整的应用框架。 总的来说,`org....
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @...
org.springframework.beans-sources-3.0.5.release.jar
org.springframework.beans-3.1.RELEASE.jar org.springframework.context.support-3.1.RELEASE.jar org.springframework.context-3.1.RELEASE.jar org.springframework.core-3.1.RELEASE.jar org.spring...
`org.springframework.beans.factory.config.PropertyPlaceholderConfigurer` 是Spring框架中的一个重要组件,主要负责处理配置文件中的占位符替换。这个类是Spring在初始化bean时用来解析和注入环境变量或系统属性...
org.springframework.beans-3.1.0.M2
org.springframework.beans-3.0.0.RELEASE.jar org.springframework.context.support-3.0.0.RELEASE.jar org.springframework.context-3.0.0.RELEASE.jar org.springframework.core-3.0.0.RELEASE.jar org.spring...
在Spring框架中,`org.springframework.beans.factory.InitializingBean`接口是一个非常重要的概念,它用于标记那些需要在初始化完成后执行特定逻辑的bean。这个接口只包含一个方法:`afterPropertiesSet()`,当bean...
org.springframework.beans-3.1.1.RELEASE org.springframework.context.support-3.1.1.RELEASE org.springframework.context-3.1.1.RELEASE org.springframework.core-3.1.1.RELEASE org.springframework....
从提供的文件列表看,有两个Spring库:`org.springframework.beans-3.0.2.RELEASE.jar`和`spring-tx-3.2.4.RELEASE.jar`。`DaoSupport`位于`spring-dao`模块中,而不是这两个jar中。你需要确保你的构建配置(如Maven...
org.springframework.beans-3.0.0.M3.jar
org.springframework.beans-3.1.0.RELEASE.jar