这段时间开发一个小型oa系统遇到的一个maven 依赖的jar没有导进去而引起的配置文件读取不到jar包的错误。浪费了些时间,终于发现问题,mark下以便以后解决类似问题。
eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.c
1. Add maven dependencies
Right click the web project “properties” -------> click the “Deployment Assembly” ---->
Click add button
![eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c](http://s10.sinaimg.cn/bmiddle/8ced0190gd6c510ac0d89&690)
Choose Java Build Path Entires ---> click Next
![eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c](http://s6.sinaimg.cn/mw690/8ced0190gd6c51945cf85&690)
Choose Maven
Dependencies------>
Finish
![eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c](http://s2.sinaimg.cn/mw690/8ced0190gd6c51ace0c41&690)
2.
Add project
dependencies
Click add button
![eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c](http://s5.sinaimg.cn/mw690/8ced0190gd6c51f78e864&690)