cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven'

前端 未结 5 1815
梦谈多话
梦谈多话 2021-01-03 05:38

If i do not paste xmlns:tx=\"http://www.springframework.org/schema/tx\" then there are no problems. However if i do insert the text i get an cvc-complex-typ

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-03 06:36

    This is worked for me with Spring 3.X+ Hibernate+MySQL+ Maven

    servlet-context.xml

    
    
        
    
        
        
    
        
        
    
        
        
            
            
        
    
        
    
    
    
        
            
            
                
                    org.hibernate.dialect.MySQLDialect
                    
                    true
                
            
            
        
    
    
        
            
            
            
            
        
        
            
        
        
        
    
    
    

    pom.xml

        
        
            org.hibernate
            hibernate-core
            3.6.0.Final
        
    
        
            javax.persistence
            persistence-api
            1.0
        
    
        
            org.springframework
            spring-orm
            3.0.5.RELEASE
        
    
    
        
            org.springframework
            spring-jdbc
            4.0.0.RELEASE
        
    
        
            mysql
            mysql-connector-java
            5.1.32
        
        
        
            cglib
            cglib
            2.2
        
    
        
            javassist
            javassist
            3.12.1.GA
        
    

提交回复
热议问题