
spring-cloud
孟夏草木长
程序
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringCloud+RabbitMQ微服务订单系统
1.下单的时候,调用订单微服务系统的下单方法,首先,先给订单实体赋值,然后在向MQ发送消息,接收到MQ返回来的消息后,保存订单,在生成微信或支付宝的签名字符串 2.下单(购买)接口 @PostMapping("/payGoods") public Result payGoods(@RequestBody OrderSGoods orderSGoods, HttpServletRequ...原创 2019-11-02 13:44:17 · 2701 阅读 · 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 · 8117 阅读 · 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 · 1947 阅读 · 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 · 622 阅读 · 1 评论