我正在尝试通过本机映像中的Agroal建立动态数据库连接。无法使用默认的配置参数,因为我在编译时不知道连接参数。现在有可能吗? 连接是在运行时建立的:
AgroalDataSource.from(
AgroalDataSourceConfigurationSupplier()
...)
我当前看到此错误:
Class io.agroal.pool.ConnectionHandler[] is instantiated reflectively but was never registered.
Register the class by using org.graalvm.nativeimage.hosted.RuntimeReflection
已安装的功能包括:[agroal,cdi,jdbc-h2,jdbc-mysql,jdbc-postgresql,kotlin,narayana-jta,resteasy,resteasy-jackson]
它可以在JVM上正常运行,但不能使用Graal。感觉应该有可能,我可能在这里错过了一些东西。我希望添加agraol
扩展名就足够了,但是显然没有正确选择。