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

一,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.

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

 

posted @ 2018-08-11 19:05  戈壁飞翔  阅读(1449)  评论(0编辑  收藏  举报