异常关键内容:
Error resolving template ‘’/emp/add" template might not exist or might not be accessible by any of the configured Template Resolvers。
具体截图如下:

场景:
- 本地运行项目能访问相关页面,服务器在运行jar就出问题。
- 经过度娘与调试分析,原来是springboot+themeleaf框架,返回页面不能多出“/”。
在此,做出记录总结。
解决如下:
去掉返回视图路径的 “/”,具体截图如下:
错误:

正确:
