首页 > 编程语言 > 详细

springCloud集成常用组件(持续更新)

时间:2018-08-11 19:17:11      阅读:231      评论:0      收藏:0      [点我收藏+]

一,springCloud集成eureka,搭建注册中心

代码地址:https://github.com/gebifeixiang/eureka-center

踩坑点:

1,pom.xml中各个依赖冲突问题;
2,eureka.client.fetchRegistry=false

#如果为true,启动时报警

 

二,springCloud集成eureka,mysql,mybatis,activeMq,redis

代码地址;

数据处理服务层;https://github.com/gebifeixiang/dataservice

对外接口层:https://github.com/gebifeixiang/interface

踩坑点:

1,引入mybatis后,报错提示找不到对应的Mapper实现方法。
解决方法:启动类中没有添加mapperScan()注解;
2,dataService发送mq消息后,interface收到消息,但是报错,提示
Caused by: javax.jms.InvalidDestinationException: Cannot determine response destination: Request message does not contain reply-to destination, and no default response destination set.

解决方法:暂无(待解决)

 

springCloud集成常用组件(持续更新)

原文:https://www.cnblogs.com/li-zhan/p/9460728.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!