1.src路径下的文件在编译后就会放到WEB-INF/classes路径下,默认的classPath是在这里的,
2.用maven构建项目的时候,Resource目录就是默认的classPath
classPath即为java文件编译之后的class文件的编译目录,一般为web-inf/classes,src下的xml在编译时也会复制到classpath下
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("xxx.xml")读取classPath下的xml
ApplicationiContext applicationContext = new FileSystemXmlApplicationContext("webRoot/WEB-INF/xxx.xml")读取web info下的xml
3.springboot的classPath跟普通的classPath有区别吗?