spring boot中使用dubbo出現異常java.lang.IllegalStateException: <dubbo:service interface="" /> interface not allow null!
今天我在閒的時候,自己在springBoot中使用dubbo的時候,啟動的時候,發現啟動失敗,報java.lang.IllegalStateException: <dubbo:service interface="" /> interface not allow null! 這個異常。我首先看了是否連線了zookeeper,是否使用了dubbo相關的service註解,在主程式的啟動類上面是否使用了相關的dubbo註解。
以上問題都查詢了一遍後,發現並沒有問題。後來突然發現報的異常叫做 interface not allow null! ,突然想起來我使用的時候
@com.alibaba.dubbo.config.annotation.Service(interfaceClass = DictionaryTypeServiceImpl.class),
發現是我的interfaceClass屬性指向的是介面的實現類,修改成介面@com.alibaba.dubbo.config.annotation.Service(interfaceClass = DictionaryTypeService.class) 之後使用正常。
相關推薦
spring boot中使用dubbo出現異常java.lang.IllegalStateException: <dubbo:service interface="" /> interface not allow null!
今天我在閒的時候,自己在springBoot中使用dubbo的時候,啟動的時候,發現啟動失敗,報java.lang.IllegalStateException: <dubbo:service interface="" /> interface not allow null! 這個異常。我首先看了是
Spring Boot與Log4j2整合之java.lang.IllegalStateException: Logback configuration error detected:
引言: 一個問題的分析與解決過程是表與裡的過程,是一個大膽猜測與小心求證的過程,spring boot與log4j2的整合過程中,我將描述一下分析這個問題的思路和過程。 我一直強調一點: 重要的不是解決問題的結論,而是解決問題的思路和方法,即使在解決完問題之後,
spring boot(多資料來源)+spring batch 解決異常: java.lang.IllegalStateException
專案整合說明: spring boot(配置多資料來源) spring batch 資料來源配置檔案: @Configuration public class DataSourceConfig { @Primary @Bean(n
spring-boot 啟動時候 出現異常:The bean 'xxx' could not be injected as a 'xx.xxxx' because it is a JDK dynamic proxy that implements:
ng- for sed AC 存在 cti 解決方法 sid 失敗 The bean ‘xxxService‘ could not be injected as a ‘AaaXxxService‘ because it is a JDK dynamic proxy tha
spring boot 集成axis1.4 java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis.client.AxisClient
could not cli PC com 定義 logging axis found 調用 pom配置: <dependencies> <dependency> <groupId>org.springframewor
Spring Boot 中全局異常處理器
clas 重定向 img 就是 全局異常處理 tro inf src har Spring Boot 中全局異常處理器,就是把錯誤異常統一處理的方法。等價於Springmvc中的異常處理器。 步驟一:基於前面的springBoot入門小demo修改 步驟二:修改Hell
resin發布spring-boot項目報錯“java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger”
圖片 ssa 項目啟動 chm dep bubuko ava initial 4.3 說白了還是jar包沖突問題,直接說解決方式: 首先將resin/lib下的validation-api-1.0.0.GA.jar替換成項目中的包validation-api-2.0.1.F
整合spring和mybatis時,異常java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTrans
觸發原因:單方面升級mybatis版本。 mybatis、mybatis-spring版本如下: <dependency> <groupId>org.mybatis</groupId> <artifa
出現異常java.lang.UnsupportedClassVersionError
錯誤:java.lang.UnsupportedClassVersionError: Bad version number in .class file 造成這種錯誤的原因是你的支援Tomcat執行的JDK版本與支援application執行的JDK版本不一致導致的。 解
OKHttp異常java.lang.IllegalStateException: closed與debug時遇到的坑
今天第一次使用okhttp,因為介面沒有告知返回的json格式,只好debug自己看返回的串,結果初次使用直接崩潰了 錯誤提示java.lang.IllegalStateException: closed 原因在網上查到是因為 OkHttp請求回撥中response.body().st
Spring Cloud RestTemplate報錯:java.lang.IllegalStateException: No instances available for
java.lang.IllegalStateException: No instances available for localhost 原:restTemplate.getForObject( uri+"/user/getname",User.clas
使用Servlet3.0新特性asyncSupported=true時拋異常 java.lang.IllegalStateException: Not support...
http://www.tuicool.com/articles/zYfmme 最近在運用Servlet3.0新特性:非同步處理功能的時候出現以下了2個問題: 執行時會丟擲以下兩種異常: 一月 19, 2014 3:07:07 下午 org.apache.catalina.core
對異常 java.lang.IllegalStateException: getAttribute: Session already invalidated的理解
最近專案日誌中總是丟擲異常 java.lang.IllegalStateException: getAttribute: Session already invalidated 經調查發現,問題出在Http
spring cloud feign:Caused by: java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0
use except app caused ise als stp lstat name 報錯之前: @RequestMapping(value = "hi", method = RequestMethod.GET)String hiService(@Request
spring boot中使用jackson出現java.lang.NoClassDefFoundError: Could not initialize class com.fasterxml.jack
Jackson Dependency Issue in Spring Boot with Maven Build In this article, a Spring Boot 1.3.3 dependency issue is explored and an override is provid
spring boot:java.lang.IllegalStateException異常
1、單元測試報錯: java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith's 'value' attribute or make t
spring-boot實戰【07】【轉】:Spring Boot中Web應用的統一異常處理
http integer private fin ima lex clas 友好 ref 我們在做Web應用的時候,請求處理過程中發生錯誤是非常常見的情況。Spring Boot提供了一個默認的映射:/error,當處理中拋出異常之後,會轉到該請求中處理,並且該請求有一個全
關於Spring boot中讀取屬性配置文件出現中文亂碼的問題
led Coding uri oot serve http 添加 message 程序 1.再配置文件(application.properties)中添加編碼字符集 #返回頁面、數據中文亂碼問題spring.http.encoding.force=truespring.h
struts/spring偶爾出現java.lang.IllegalStateException
prot 導致 str 如果 struts 單例對象 cep esp 信息 異常信息: java.lang.IllegalStateException:Cannot call sendRedirect() after the response has been commi
企業分布式微服務雲SpringCloud SpringBoot mybatis (五)Spring Boot中Web應用的統一異常處理
src one exception learn 微服務 public .net 可能 訪問 我們在做Web應用的時候,請求處理過程中發生錯誤是非常常見的情況。Spring Boot提供了一個默認的映射:/error,當處理中拋出異常之後,會轉到該請求中處理,並且該請求有一個