<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
</parent>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search-orm</artifactId>
<version>4.5.1.Final</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
</dependencies>
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.search.cfg.Environment
application.properties
spring.jpa.properties.hibernate.search.default.directory_provider=filesystem
spring.jpa.properties.hibernate.search.default.indexBase=/home
を私の春のブートアプリ。がんばろう!
Hibernate 5にはいくつかのSpringブートバージョンに関する既知の問題があります。より多くの設定を提供する必要があります。 –
どのバージョンのHibernate ORMが使用されていますか? Hibernate Searchは、Hibernate ORMの互換バージョンとペアにする必要があります。一般的に5.xは5.xで動作しますが、ORMのバージョンがかなり古い場合は動作しません。 – Sanne