Attribute "scope" must be declared for element type "bean"

struts整合sping时出现的问题:Attribute "scope" must be declared for element type "bean"

maven中jar包:


  4.0.0
  com.sunshine
  SunshineWeb
  war
  0.0.1-SNAPSHOT
  SunshineWeb Maven Webapp
  http://maven.apache.org
  
           
       com.sun       
       tools       
       1.5.0   
     
    
      junit
      junit
      3.8.1
      test
    
    
    	org.apache.struts
    	struts2-core
    	2.3.8
    
    
    	org.hibernate
    	hibernate-core
    	4.2.0.CR1
    
    
    	mysql
    	mysql-connector-java
    	5.1.23
    
    
    	org.apache.struts
    	struts2-spring-plugin
    	2.3.8
    
    
    	org.springframework
    	spring-context
    	3.2.1.RELEASE
    
    
    	org.springframework
    	spring-context-support
    	3.2.1.RELEASE
    
    
    	org.springframework
    	spring-beans
    	4.1.5.RELEASE
    

    
    	org.springframework
    	spring-core
    	4.1.5.RELEASE
    
  
  
    SunshineWeb
  
  


由于spring的版本升级才会造成这种问题:

在1.0dtd中是:



    
	
	

在2.0dtd中是:



    
	
	




如果是因为jar包升级造成的错误,只要修改
即可




你可能感兴趣的:(SSH)