2026/1/24 8:42:47
网站建设
项目流程
网站建设与管理复习题,宁波网站推广多少钱一个,电商网上开店步骤,网站ui文章目录 1、代码版本 2、代理实现过程 3、被代理的OrderService分析 3.1、结构如下 4、事务的管理 1、代码版本
springboot3.2.5, spring6.1.6, mybatis-plus3.5.5 业务代码 1个Controller 2个Service以及实现类 一个普通Service,一个MyBatis-Plus的Service @RestController…文章目录1、代码版本2、代理实现过程3、被代理的OrderService分析3.1、结构如下4、事务的管理1、代码版本springboot3.2.5, spring6.1.6, mybatis-plus3.5.5业务代码1个Controller2个Service以及实现类一个普通Service,一个MyBatis-Plus的Service@RestController@RequestMapping("/order")@RequiredArgsConstructorpublicclassGoodsController{privatefinalOrderServiceorderService;privatefinalNormalServicenormalService;@GetMapping("/print")publicStringgetOne(@RequestParam("orderId")LongorderId){returnnormalService.print(orderId);}@GetMapping("/list")publicListOrderVOgetList(@RequestParam("userId")LonguserId){ListOrderVOdata=orderService.getList(userId);returndata;}