SpringMVC项目打包后运行错误"Error resolving template "/index", template might not exist or ......"解决

    在上篇《SpringMVC基本使用》中,使用mvn package后的jar包在访问主页(http://localhost:8880)时会出现如下错误:

    

    我们把返回模板名字前的"/"线去掉即可:

    

    重新打包即可。

猜你喜欢

转载自blog.csdn.net/Linjingke32/article/details/81014448
今日推荐