马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
SpringBoot2.7.8
- 背景:
- 在增加出库订单时需要对物品表的的数量进行修改
因此我在OutboundController中创建了几个公共方法,并将其注入到Spring中,结果给我报了这一串错误。
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| getGoodsNumber defined in class path resource [com/QRproject/project/system/controller/GoodsController.class]
<strong>└── addOutbound(@RequestBody Outbound outbound){3 goodsPublicService.deleteGoodsNum(outbound.getGoodsId(),outbound.getOutNum());4 LocalDateTime localDateTime = LocalDateTime.now();5 outbound.setOutNum(outbound.getOutNum());6 outbound.setOutTime(localDateTime);7 outboundService.save(outbound);8 return Result.success("增加出库订单成功");9 [/code]
成功运行!
</ul>
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! |