-1
java.lang.NoSuchMethodError: org.hibernate.cfg.annotations.reflection.JPAMetadataProvider.<init>(Lorg/hibernate/boot/spi/MetadataBuildingOptions;)V
でエラーを取得。私の春のプログラム
java.lang.NoSuchMethodError: org.hibernate.cfg.annotations.reflection.JPAMetadataProvider.<init>(Lorg/hibernate/boot/spi/MetadataBuildingOptions;)V
でエラーを取得。私の春のプログラム
がhereからの回答をコピーしました。
にHibernate注釈:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.5.6-Final</version>
</dependency>
休止コモンズ注釈:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.2.0.Final</version>
</dependency>
私は両方を削除することで、競合を解決し、私の場合は、以下のdepdenciesの間に矛盾がありました依存関係とそれに続くものを使用する:
休止コモンズ注釈»5.0.1.Final
<dependency>
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>5.0.1.Final</version>
</dependency>
が、これは誰かを助けるかもしれない願っています。
スタックオーバーフローへようこそ。 https://stackoverflow.com/help/how-to-askを読んで質問を改善してください。 –