首页>代码>案例-MySQL自定义排序(维护一个序号)-并发惹的祸>/distributed-lock-demo/base-question/src/main/java/com/cxs/controller/ProductController.java
package com.cxs.controller;
import com.cxs.service.ProductInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/*
* @Project:distributed-lock-demo
* @Author:cxs
* @Motto:放下杂念,只为迎接明天更好的自己
* */
@RestController
@RequestMapping("/product")
public class ProductController {
@Autowired
private ProductInfoService productInfoService;
@Value("${server.port}")
private Integer port;
@PostMapping("/save")
public Object save(){
return productInfoService.saveProduct() + "---port=" + port;
}
}
最近浏览更多
wrmhxr
2023年8月26日
暂无贡献等级
陆程江 LV2
2023年5月28日
苏拉德666 LV4
2023年5月13日
不止是六位数 LV7
2023年3月20日
微信网友_5992582549164032 LV6
2023年2月21日
suxin123_123 LV5
2023年2月3日
最代码_码鑫源 LV6
2023年2月3日
antoniozhuster LV7
2023年2月3日
CrystalQ LV8
2023年2月3日
Dream_Lee LV1
2023年2月1日

最近下载
