```java
package com.example.demo.controller;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.example.demo.entity.SuddleData;
import com.example.demo.services.SuddleService;
import com.mysql.cj.xdevapi.JsonArray;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
@RestController
public class SuddleController {
@Autowired
private SuddleService sService;
@RequestMapping(value = "/getsuddleId", method = RequestMethod.POST)
public String getByName(@RequestParam Integer id)
springboot controller 完整的增删改查
最新推荐文章于 2024-03-29 15:58:51 发布