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.

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM