關於報錯Error creating bean with name 'xxxxx': Invocation of init method....
網上查詢的資料是這種異常一般都是包導錯了,缺失、衝突、版本錯誤都可能。
由於再報這個錯之前我進行了新增刪除修改pom.xml檔案、右鍵專案->maven->update project、project->clean等這些對於專案整體上修改更新的操作。不好直接定位到具體是那種原因造成。所以我仔細翻看了下異常記錄,點進去其中報錯的一個java檔案中檢視,發現報錯的點竟然是Override註解。這不就是不支援Override註解的原因麼,結合之前有過相關經驗,直接判斷為編譯器版本低的問題。
解決辦法:1、專案右鍵->Build Path->configure builde path(然後把預設的1.5改成自己的jre版本:具體為刪除1.5的,然後add library-> jre system library->workspace default library(一般比1.5高,現在至少都是1.7,1.8了))。
2、 專案右鍵->properties ->java compiler。去掉勾選use compliance from execution envirenment on the java builde path。然後complier compliance level 選自己的java版本。
相關文章
- Error creating bean with name 'tomcatEmbeddedServletContainerFactory'ErrorBeanTomcatServletAI
- Error creating bean with name ‘dataSource‘ErrorBean
- Error creating bean with name 解決ErrorBean
- 解決程式中Error creating bean with name 'XXXXX‘ defined in class path resource [application的異常ErrorBeanAPP
- Spring注入bean報錯 Error creating bean with name的網上找不到的解決方案SpringBeanError
- Error creating bean with name ‘dataSource‘: Unsatisfied dependency expressed through fieldErrorBeanExpress
- 異常解決——Spring Cloud FeignClient: BeanCreationException: Error creating bean with name XXXServiceSpringCloudclientBeanExceptionError
- Configuration problem: Bean name 'xxxxx' is already used in this element spring例項重複注入BeanSpring
- dubbo和spring結合報錯 Invocation of init method failed; nested exception is java.lang.IllegalArgumentExceSpringAIExceptionJava
- 關於Chrome報錯 ERR_NAME_NOT_RESOLVED 解決辦法Chrome
- 小程式 · 報錯:Error: errCode: -501007 ,errMsg: Invalid Key Name (__keyPath)Error
- 連線oracle資料庫時,報錯:{dataSource-1} init errorOracle資料庫Error
- vue init webpack報錯VueWeb
- QT中error: xxx does not name a type xxx錯誤QTError
- vagrant up 啟動報錯 Stderr: VBoxManage.exe: error: A NAT rule of this name already existsError
- 關於報錯An unexpected error occurred: “https://registry.yarnpkg.com/react: socket hang up“ErrorHTTPYarnReact
- go mod init報錯問題Go
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- Android之NDK開發錯誤 error: unknown type name 'JNIEXPORT'AndroidErrorExport
- error creating overlay mount to invalid argument unbuntu系統Error
- beego報錯 table name: `xxx` not existsGo
- error: 'cout' does not name a type|Error
- error: ‘xxx’ does not name a typeError
- 寶塔:續簽SSL證書報錯Verification failed, domain name resolution error or verification URL cannot be accessed!AIError
- ORA-31687: error creating worker process with worker id 1Error
- Qt 報錯 “類名”does not name a typeQT
- 關於 Laravel 佇列報錯Laravel佇列
- 關於Spring的bean注入SpringBean
- PHP報錯:Call to undefined function curl_init()PHPUndefinedFunction
- Caused by: Error: ' ' is not a valid resource name characterError
- Dynamics CRM Error- Creating Entity with an invalid parent. Entity: EmailErrorAI
- Cargo invocation has failed: Error: exit code: 101.解決辦法CargoAIError
- No Bean named 'Xxx' available 異常報錯BeanAI
- vue+echarts報錯Cannot read property ‘init‘ of underfinedVueEcharts
- error: ‘變數名‘ does not name a type|Error變數
- 【Redis】slaveof 報錯 Background transfer errorRedisError
- 網站報錯:“Database Server Error”網站DatabaseServerError
- pip install scrapy報錯:error: UnableError