classpath contextConfigLocation classpath:config/spring.xml web.xml是最根本的,其他的配置都是按照web.xml文件中的上述代码配置的,配置路径classpath:config/spring.xml。classpath相当于src。