Skip to content

Leverage spring.ignore.xml flag to avoid SQLErrorCodeSQLExceptionTranslator #25335

@sdeleuze

Description

@sdeleuze

SQLErrorCodeSQLExceptionTranslator transitively uses SQLErrorCodesFactory which is using XmlBeanDefinitionReader to parse sql-error-codes.xml, triggering the usage of the XML parsing infrastructure that has a significant cost on GraalVM native images.

This issue is a follow up of #25151 and introduces the usage of SQLExceptionSubclassTranslator instead when spring.ignore.xml is true.

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions