The way the code is always a lot of pit
ssm create maven junit unit test test framework uses when prompted to find applicationContext.xml file, suggesting that there is no
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist
Eventually find out, thanks to people who are willing to share child
Solution: First, check the configuration path junit test unit introduced is correct, and then add some testresources file in pom file, specify the test file to obtain the location of resources, testresources can bulid added. Precautions: After adding save, clear project, and maven project to update it, and then you're done.