本地正常运行,但放到服务器端无法运行 500错误如图:
错误截图Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Aug 23 16:22:27 CST 2017
There was an unexpected error (type=Internal Server Error, status=500).
Error resolving template "/teacher/sign_in/main", template might not exist or might not be accessible by any of the configured Template Resolvers
解决办法:
报错 500 表示没能找到这个路径"/teacher/sign_in/main"
,所以经过仔细检查,我发现正确的路径应该为:"teacher/sign_in/main"
即根目录不应该添加/
, 经过修复改正。奇怪的是本地竟然是正常的。
网友评论