1.这是controller类
2.这是Service接口
3.这是spring-mvc.xml
4.这是applicationContext.xml
5.这是web.xml
1.这是controller类
2.这是Service接口
3.这是spring-mvc.xml
4.这是applicationContext.xml
5.这是web.xml
404就是路径不对,你调整一下你访问的路径,加上应用名称(http://localhost:8080/projectName/books),如果代码里配了统一前缀,这个也要加上