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.

解决方法:暂无(待解决)
相关文章
相关标签/搜索