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