1. Add maven dependencies
Right click the web project “properties” -------> click the “Deployment Assembly” ---->Click add button
2:Choose Java Build Path Entires ---> click Next
3:Choose Maven Dependencies------> Finish
到此,可以重新启动tomcat。
本文转自:http://blog.sina.com.cn/s/blog_8ced01900101ba3f.html
个人理解是因为tomcat默认加载WEB-INF下面的包。这样设置加载时包已经到了WEB-INF下面。