Haris
Haris

Reputation: 15

how to handle 400,404,500,501 etc in spring?

How to handle 400,404,500,501 etc in a BaseController which can be extend by all child controllers in spring.

I need an example on this.

Upvotes: 0

Views: 74

Answers (1)

Sinisha Mihajlovski
Sinisha Mihajlovski

Reputation: 1841

This is independent of spring, you can define it in the web.xml, have a look at How to specify the default error page in web.xml?

Upvotes: 1

Related Questions