Spring boot ElasticSearch,出現ElasticsearchRepository.refresh()! No property refresh found for type錯誤...
- 在使用實體類上同時註解@Entity @Document
- jpa search Repository放在同一個包下面
會出現這個錯誤
解決方案: - 將jpa search Repository放在不同的包下面
@EnableElasticsearchRepositories(basePackages = "com.xxxx.elsearchrepository")
@EnableJpaRepositories(basePackages = {"com.xxxx.jparepository"})
相關文章
- Spring Boot建立DataSource時遇到的錯誤:No supported DataSource type foundSpring Boot
- 出現錯誤 Project ‘org.springframework.boot:spring-boot-starter-parent’ not foundProjectSpringFrameworkboot
- DBCA建庫出現CHMOD NOT FOUND錯誤
- 問題No property 屬性名 found for type 類名
- [java] javax.el.PropertyNotFoundException: Property 'id' not found on type bean.StudentJavaExceptionBean
- javax.el.PropertyNotFoundException:Property 'statisDate' not found on type java.lang.StringJavaException
- PyTorch出現錯誤“RuntimeError: Found dtype Double but expected Float”PyTorchError
- Spring Boot 教程 - ElasticsearchSpring BootElasticsearch
- Spring Boot 整合 elasticsearchSpring BootElasticsearch
- 安裝 ESXi 出現錯誤 ERROR 1962: No operating system foundError
- spring boot 全域性錯誤處理Spring Boot
- Angular 內容投影出現 No provider for TemplateRef found 錯誤的單步除錯AngularIDE除錯
- PropertyReferenceException: No property courseId found for type CoursePic! Did you mean ‘courseid‘?Exception
- ElasticSearch與Spring Boot整合ElasticsearchSpring Boot
- 七、Spring Boot 錯誤處理原理 & 定製錯誤頁面Spring Boot
- Spring Boot返回靜態錯誤頁面Spring Boot
- Spring Boot 整合 Elasticsearch 實戰Spring BootElasticsearch
- 使用Spring Boot和Elasticsearch教程Spring BootElasticsearch
- Eclipse中執行出現selection does not contain a main type錯誤EclipseAI
- GetDlgItem() 出現錯誤Git
- Spring Boot配置是遇到錯誤:jdbcUrl is required with driverClassNameSpring BootJDBCUI
- Spring Boot配置錯誤:Failed to determine a suitable driver classSpring BootAIUI
- Spring boot/Spring 統一錯誤處理方案的使用Spring Boot
- Spring refresh方法Spring
- Cannot set property ‘type‘ of null(vue)NullVue
- 執行hadoop fs -ls時出現錯誤RuntimeException: core-site.xml not foundHadoopExceptionXML
- Opencv出現detecMultiScale錯誤OpenCV
- Spring websocket瀏覽器連線時出現404錯誤SpringWeb瀏覽器
- 使用 Spring Boot 提供API錯誤訊息的好方式Spring BootAPI
- Spring Boot 中使用 Java API 呼叫 ElasticsearchSpring BootJavaAPIElasticsearch
- 小程式錯誤:Component is not found in path
- MyBatis 錯誤:Invalid bound statement (not found)MyBatis
- Laravel 出現 419 錯誤Laravel
- AS打包出現app:transformClassesAndResourcesWithProguardForRelease錯誤APPORM
- 使用 sudo 命令出現錯誤
- FTP出現426錯誤FTP
- Spring Boot + Nacos 實現不停服釋出Spring Boot
- Spring Boot整合shiro出現UnavailableSecurityManagerExceptionSpring BootAIException