![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
陌上离离
学习,奋斗
展开
-
配置Spring的applicationContext.xml文件时出现The prefix "context" for element "context:component-scan" is not
配置Spring的applicationContext.xml文件时出现错误:The prefix "context" for element "context:component-scan" is not bound.解决办法:在文件中添加:xmlns:context=http://www.springframework.org/schema/context之后报错:cvc-原创 2017-03-30 11:12:14 · 4472 阅读 · 1 评论 -
hibernate与Spring整合时出现错误org.springframework.beans.factory.BeanCreationException: Error creating bean
hibernate与Spring整合时出现错误:org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'sessionFactory' defined in class path resource[applicationContext.xml]: Instantiation原创 2017-03-30 20:54:57 · 1278 阅读 · 0 评论 -
org.springframework.beans.factory.NoSuchBeanDefinitionException:No bean named 'testAction' is define
错误:org.springframework.beans.factory.NoSuchBeanDefinitionException:No bean named 'testAction' is defined atorg.springframework.beans.factory.support.DefaultListableBeanFactory.g原创 2017-03-30 20:57:25 · 490 阅读 · 0 评论 -
Spring环境配置
Spring Jar包:核心包(spring-framework-2.5.6.SEC01\dist下的spring.jar),做aop(spring-framework-2.5.6.SEC01\lib\aspectj下的两个jar包【aop的原理:动态代理和spring-framework-2.5.6.原创 2017-03-30 21:49:23 · 359 阅读 · 0 评论 -
Struts Problem Report Struts has detected an unhandled exception:
Struts Problem ReportStruts has detected an unhandled exception:Messages: could not initialize proxy - no SessionError reading 'name' on type cn.my.oa.domain.Department_$$_javassist_2原创 2017-05-09 09:28:34 · 1800 阅读 · 0 评论 -
java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [or
JDK从1.7换到了1.8,导入原来的项目,报错原因 Spring版本太低原创 2017-08-09 19:16:23 · 674 阅读 · 0 评论 -
org.hibernate.HibernateException: save is not valid without active transaction
org.hibernate.HibernateException: save is not valid without active transaction因为在hibernate中配置了thread删除就好用了原创 2017-08-10 14:58:21 · 870 阅读 · 0 评论