Custom error pages (in template engine case):
Under the support of the template: In the templates established folder error folder
in the error folder
404.html
500.html
4xx.html (name is called 4xx.html)
5xx.html
like this:
Custom error message:
timestamp: timestamp
status: status code
error: error
exception: Exception Objects
message: exception message
errors: JSR303 data parity errors are here
acquire such acquired by the [[$ {status}]] !
Like this:
SpringBoot If the above problems will arise automatically go to the page! !
Test results: