1.配置文件存放在src目录下需要使用classpath classpath:etoak-servlet.xml 2.配置文件存放在WEB-INF目录下不需要使用classpath WEB-INF/etoak-servlet.xml