1. 程式人生 > >springCloud集成常用組件(持續更新)

springCloud集成常用組件(持續更新)

vax 解決方法 github mysql 引入 als ava req ali

一,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集成常用組件(持續更新)