大佬教程收集整理的这篇文章主要介绍了Spring Boot,Hibernate Search属性,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
如果放置“ spring.jpa.propertIEs”,则可以将它们放置在application.propertIEs文件中。在属性名称前面。
spring.jpa.propertIEs.hibernate.search.jmx_enabled=true
spring.jpa.propertIEs.hibernate.search.default.directory_provIDer=filesystem
spring.jpa.propertIEs.hibernate.search.generate_statistics=true
spring.jpa.propertIEs.hibernate.search.lucene_version=LUCENE_CURRENT
spring.jpa.propertIEs.hibernate.search.default.indexBase=/mypath-to-index
Spring将在spring.jpa.propertIEs。*下采用任何属性,并在创建EntitymanagerFactory后将其传递(带前缀)。
使用Spring Boot时如何提供Hibernate Search参数?
...
spring.datasource.driverClassName=org.POSTGResql.Driver
hibernate.search.jmx_enabled=true
hibernate.search.default.directory_provider=filesystem
hibernate.search.generate_statistics=true
hibernate.search.lucene_version=LUCENE_CURRENT
hibernate.search.default.indexBase=/mypath-to-index
它不在乎我提供什么。始终会应用默认设置。
我认为以下代码没有任何东西可以处理与Hibernate Search相关的属性。这可以成为问题吗?
https://github.com/spring-projects/spring-boot/blob/master/spring-boot-
autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaProperties.java
以上是大佬教程为你收集整理的Spring Boot,Hibernate Search属性全部内容,希望文章能够帮你解决Spring Boot,Hibernate Search属性所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。