maven+spring+junit测试程序出错

报错内容是java.lang.IllegalStateException: Failed to load ApplicationContext
具体代码我就不贴了,我贴个目录结构,我不知道为什么错了,百度这个异常得到的结果我试了也是没什么用。
图片说明

检查springmvc-config.xml的依赖中,是否注入

这是datasource.xml中的配置
图片说明

这是application中配置
图片说明

junit测试程序为
@RunWith(SpringJUnit4ClassRunner.class)
public class TestMybatis {

private ApplicationContext ac;
private UserDao userdao;

@Before
public void befor() {
    ac = new ClassPathXmlApplicationContext(new String[] {
            "datasource.xml",
            "applicationContext.xml" });
    userdao = (UserDao) ac.getBean("userDaoImpl");
}

@Test
public void test1() {
    User u = userdao.getUserById("1");
    System.out.println(u.getUsername());
}

}
userdao是接口,userDaoImpl是实现类,加service注解:@service("userDaoImpl")

大神们帮帮忙看看哪里错了,小弟新手刚接触ssh框架

before 中 地址对吗