美文网首页服务器配置学习Java服务器端编程
服务器上 type=Internal Server Error,

服务器上 type=Internal Server Error,

作者: 18587a1108f1 | 来源:发表于2017-08-23 16:38 被阅读710次

本地正常运行,但放到服务器端无法运行 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" 即根目录不应该添加/ , 经过修复改正。奇怪的是本地竟然是正常的。

相关文章

网友评论

    本文标题:服务器上 type=Internal Server Error,

    本文链接:https://www.haomeiwen.com/subject/bmxjdxtx.html