![](/img/trans.png)
[英]Spring Boot App with Cglib throws InvocationTargetException
[英]Spring boot: InvocationTargetException Solr
我正在嘗試構建spring boot / data / solr應用程序。 使用STS 3.6.4沒有編譯錯誤,但是當我運行mvn clean spring-boot:run
此異常:
> Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.2.4.RELEASE:run
> (default-cli) on project search: An exception occured while running.
> null: InvocationTargetException: Failed to read candidate component
> class: file
> [/Users/griff/Documents/workspace-sts-3.6.4.RELEASE/SearchEng_Proto/target/classes/com/foo/search/config/SolrContext.class];
> nested exception is java.lang.annotation.AnnotationFormatError:
> Invalid default: public abstract java.lang.Class
> org.springframework.data.solr.repository.config.EnableSolrRepositories.repositoryBaseClass()
> -> [Help 1]
> [ERROR]
訪問: 啟動Java項目時發生類沖突:ClassMetadataReadingVisitor具有接口org.springframework.asm.ClassVisitor作為超類。
問題是pom中的庫順序,使用gradle(如果可以的話)更簡單。
建立的解決方案是: “我通過重新排序pom依賴關系解決了相同的問題。我從org.springframework.security那里得到了問題。因此,我將其解決了依賴關系的終止。”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.