Added a error page and an interceptor to intercept the exceptions.
Adjustments in log configurations.