2017-05-08 6 views
-1
java.lang.NoSuchMethodError: org.hibernate.cfg.annotations.reflection.JPAMetadataProvider.<init>(Lorg/hibernate/boot/spi/MetadataBuildingOptions;)V 

でエラーを取得。私の春のプログラム

+0

スタックオーバーフローへようこそ。 https://stackoverflow.com/help/how-to-askを読んで質問を改善してください。 –

答えて

0

hereからの回答をコピーしました。

  1. にHibernate注釈:

    <dependency> 
    <groupId>org.hibernate</groupId> 
    <artifactId>hibernate-annotations</artifactId> 
    <version>3.5.6-Final</version> 
    </dependency> 
    
  2. 休止コモンズ注釈:

    <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> 

が、これは誰かを助けるかもしれない願っています。

関連する問題