nested exception is java.io.FileNotFoundException:class path resource[springmvc.xml] does not exist

报错,说找不到springmvc.xml配置文件,说明在web.xml中的配置springmvc时候出现问题,

有时候编译的时候,配置文件没有被编译到class路径中(target中的classes)

classpath只会在class路径中查找配置文件,这时候可以在classpath后加星号*,就会扩大查找范围,或者直接把配置文件复制到target的classes中。

猜你喜欢

转载自blog.csdn.net/qq_40454863/article/details/119703414
今日推荐