美文网首页
SpringBoot2.x整合Dubbo配置热部署的坑

SpringBoot2.x整合Dubbo配置热部署的坑

作者: theBookofChange | 来源:发表于2019-04-15 16:28 被阅读0次

    问题:SpringBoot2.x在整合Dubbo过程中添加啦热部署devtools的依赖插件后,启动报错:信息说的是强制转换异常,配置文件没有问题

    异常:java.lang.ClassCastException

    java.lang.ClassCastException:com. kltong.ma.console.common.log.vo.TLogVO cannot be cast to com.kltong.ma.console.common.log.vo.TLogVO

    解答:

    <dependency> 

    <groupId> org.springframework.boot </ groupId> 

    <artifactId> spring-boot-devtools </ artifactId> 

    <optional> true </ optional> 

    </ dependency>

    把这个包去掉重新clean然后在install在启动就可以啦

    相关文章

      网友评论

          本文标题:SpringBoot2.x整合Dubbo配置热部署的坑

          本文链接:https://www.haomeiwen.com/subject/jktpwqtx.html