43.Replace Spring Boot 'whitelabel' error page with custom JSON error response

preview_player
Показать описание
Example of replacing Spring Boot "whitelabel" error page with custom error response(with JSON response body)
Below is the GitHub link to download source:
Рекомендации по теме
Комментарии
Автор

Hi Kishan ji,

you are doing fentastic job by sharing knowledge on most updated technologies like spring boot, mvc, java 1.8 etc .
I almost follow all of your videos great explanation.
can you please upload tutorial for jenkins, git, agile process and upload a video of any end to end java project which uses spring boot, mvc, hibernate, agile.
how do and what do any software developer involved from scratch till end?

People like me will be greatful to you always for your help

chandusekhar
Автор

Hello sir,
getErrorAttributes method of ErrorAttributes interface gives an error("The Method getErrorAttributes(WebRequest, boolean) in the type ErrorAttributes is not applicable for the argument(RequestAttributes, boolean)").
as per my knowledge that this error will cause because of Spring boot versions like i am using 2.3.3 and your spring boot version is different.
so can you please tell me other option of Error handle with custom json error response which work in spring boot 2.3.3 version.
thank you.

ganeshprajapat
Автор

why I am getting this error" URI: /abc
STATUS: 404
MESSAGE: Not Found
SERVLET: dispatcherServlet error

ProTSHM
Автор

@CrossOrigin
@GetMapping("/welcome")
what if we are using this kind of requests..?Solution please

muralijava