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

一,springCloud集成eureka,搭建註冊中心java

代碼地址:https://github.com/gebifeixiang/eureka-centermysql

踩坑點:git

1,pom.xml中各個依賴衝突問題;
2,eureka.client.fetchRegistry=false

#若是爲true,啓動時報警

 

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

代碼地址;redis

數據處理服務層;https://github.com/gebifeixiang/dataservicespring

對外接口層:https://github.com/gebifeixiang/interfacesql

踩坑點:mybatis

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.

解決方法:暫無(待解決)
相關文章
相關標籤/搜索