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
Post a Comment