![](https://img-blog.csdnimg.cn/20191014161652833.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
spring-cloud
孟夏草木长
程序
展开
-
SpringCloud+RabbitMQ微服务订单系统
1.下单的时候,调用订单微服务系统的下单方法,首先,先给订单实体赋值,然后在向MQ发送消息,接收到MQ返回来的消息后,保存订单,在生成微信或支付宝的签名字符串2.下单(购买)接口@PostMapping("/payGoods") public Result payGoods(@RequestBody OrderSGoods orderSGoods, HttpServletRequ...原创 2019-11-02 13:44:17 · 2605 阅读 · 2 评论 -
SpringCloud启动项目报错:Consider defining a bean of type 'com.XXX.XXX.dao.UserDao' in your configuration.
1.报错信息为:Description:Field userDao in com.XXX.XXX.service.impl.UserServiceImpl required a bean of type 'com.XXX.XXX.dao.UserDao' that could not be found.The injection point has the following anno...原创 2019-10-20 16:32:40 · 7927 阅读 · 8 评论 -
SpringCloud启动项目报错:Consider defining a bean of type 'java.lang.String' in your configuration.
1.报错信息如下:Description:Parameter 0 of method deleteUserLabels in com.XXX.user.service.impl.UserLabelServiceImpl required a bean of type 'java.lang.String' that could not be found.The injection poi...原创 2019-10-20 10:54:03 · 1781 阅读 · 0 评论 -
IDEA中创建一个简单的SpringCloud
一:创建一个注册服务中心Eureka:1.File -> New -> Project...2.将配置文件的后缀改成yml,然后把以下属性复制进去server: port: 8080 #服务端口号#eureka 基本信息配置eureka: instance: hostname: localhost #注册到eurekaip地址...原创 2019-10-11 14:10:21 · 559 阅读 · 1 评论