Spring JUnit Test Error

后端 未结 6 1093
無奈伤痛
無奈伤痛 2020-12-16 09:17

I am receiving the following error when I attempt to run my Spring JUnit test. I am just trying to get familiar with creating JUnits using the Spring Framework.

JUni

6条回答
  •  天涯浪人
    2020-12-16 09:59

    add this one to your pom File, I had the same ERROR, but I have done this, now it works for me,

              
        org.springframework
        spring-beans
        3.1.0.RC1
    
    
    
        
        org.springframework
        spring-context
        3.0.0.RELEASE
    
    

    Note: I have POM parent, and POM child, and I wanted to test my child project, but I got error. mvn test.... so I have done this thing. in Parent.

    with version and in child without. like this one org.springframework spring-beans

                
        org.springframework
        spring-context
    
    

    try it.

提交回复
热议问题