File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
springboot4/src/main/java/org/acme Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1+ package org .acme ;
2+
3+ import org .springframework .aot .hint .MemberCategory ;
4+ import org .springframework .aot .hint .RuntimeHints ;
5+ import org .springframework .aot .hint .RuntimeHintsRegistrar ;
6+
7+ public class HibernateNativeHints implements RuntimeHintsRegistrar {
8+ @ Override
9+ public void registerHints (RuntimeHints hints , ClassLoader classLoader ) {
10+ hints .reflection ().registerTypeIfPresent (classLoader ,
11+ "org.hibernate.engine.internal.NaturalIdLogging_$logger" ,
12+ MemberCategory .INVOKE_PUBLIC_CONSTRUCTORS );
13+ }
14+ }
Original file line number Diff line number Diff line change 55import org .springframework .context .annotation .ImportRuntimeHints ;
66
77@ SpringBootApplication
8- @ ImportRuntimeHints (L2CacheRuntimeHints .class )
8+ @ ImportRuntimeHints ({ HibernateNativeHints . class , L2CacheRuntimeHints .class } )
99public class SpringBoot4Application {
1010
1111 public static void main (String [] args ) {
You can’t perform that action at this time.
0 commit comments