ObjectDB を使用して Spring-Boot にプログラムを実装しています。実際に ObjectDB を使用するために、私は完全に機能しているこのアプローチhttps://www.objectdb.com/forum/2523に従いました。
ただし、Spring-Actuator を使用するとすぐに、次のエラーが発生します。
Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.metrics.orm.jpa.HibernateMetricsAutoConfiguration': Injection of autowired dependencies failed; nested exception is com.objectdb.o.UserException: Unsupported unwrap(org.hibernate.SessionFactory.class) for EntityManagerFactory
このエラーを解決する方法についてのアイデアはありますか?
リンクとまったく同じコードを使用しています。次のように、pom に Spring-Actuator を追加しました。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>