HTTP Status 500 - Could not resolve view with name 'xxx' in servlet with name 'spring-dispatcher'

  今天在部署maven项目时遇到一些问题?

1项目正常运行,但不能访问

这个要看你的项目是你自己写的还是网上下的demo,一般我们网上下的demo都需要配置facets和artifacts,这个是将项目放到module里而artifacts是maven的一个打包形式

HTTP Status 500 - Could not resolve view with name 'xxx' in servlet with name 'spring-dispatcher'

这里需要注意,一定是选择项目wepapp/WEB-INF/web.xml

那么正常配置为什么会出现上面这种情况呢?

HTTP Status 500 - Could not resolve view with name 'xxx' in servlet with name 'spring-dispatcher'

这里如果没经验的人可能会选择/src/main/webapp/WIN-INF

注意这样配置就错了,就会报上面那个错误,正确的配置是到/webapp