java - Configuring Spring Data error message -


is possible configure spring data return generic error message instead of specific sql error message?

i'm asking because need change system accessing database , when throwing error "giving away" many database information, eg: database version.

you wrap database query in try statement , in catch section output custom generic error message using logger or otherwise.

you further find out exception in particular using 'instanceof' comparitor.

is answer you're looking or misunderstanding question?


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -