问题概述:
使用接口请求数据库表数据,返回500。debug一查返回的对象又有数据,这是问什么返回不了呢
然后我用转json格式输出看看到底是什么问题,然后发现返回的json格式为空
然后我去看了一下封装类
发现没有对参数get()和set(),我把它加上之后问题就解决了
目前还不知道是什么原因,记录一下报错和解决,希望能帮到同样有该问题的伙伴,也希望有人能帮我解释一下报错原因。
相关文章
- yii2出现An internal server error occurred.
- IDEA+SSM:Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- 解决Postman测试接口500错误(Internal Server Error),但是浏览器可以正常测试的问题
- HTTP 错误 500.19 - Internal Server Error 解决办法详解
- 解决SpringBoot跳转页面出现 There was an unexpected error (type=Internal Server Error, status=500).
- Eclipse中出现HTTP Status 500 - Error instantiating servlet class com.itheima.servlet.UserServlet
- There was an unexpected error (type=Internal Server Error, status=500). An error happened during tem
- SpringBoot “status“: 500, “error“: “Internal Server Error“
- php进主页出现:HTTP 错误 500(Internal Server Error):服务器尝试执行请求时遇到了意外情况。
- win10 HTTP 错误 500.21 - Internal Server Error