简体   繁体   中英

Why is Springboot server works differently in localhost and heroku host?

I want to handle error response. When I use local server I can get error message when exception is hit but when I use the same hosted app It shows response with error message which is null "message":""

I have noticed that when the excptionerror is thrown the server gets stoped a while and the response error comes empty due to.network delay. But for local database there is no delay which leads the server to keep responding no matter which response it has

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM