在上篇《SpringMVC基本使用》中,使用mvn package后的jar包在访问主页(http://localhost:8880)时会出现如下错误:
我们把返回模板名字前的"/"线去掉即可:
重新打包即可。