Add reflection hint for EmbeddedDataSourceProxy#shutdown

This commit adds a reflection hint on
EmbeddedDatabaseFactory$EmbeddedDataSourceProxy#shutdown when
EmbeddedDatabaseFactory is reachable in order to allow its usage
as bean destroy method.

Closes gh-29259
This commit is contained in:
Sébastien Deleuze
2022-10-05 14:06:33 +02:00
parent 681cf0dae7
commit ff81d64fb5
3 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
org.springframework.aot.hint.RuntimeHintsRegistrar=\
org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryRuntimeHints