1 实现思路
2 实现
2.1 创建springboot项目
2.2 编写一个接口,功能很简单就是传入一个Json对象并返回
package com.example.demo.controller;import com.example.demo.entity.Advertising;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;@Slf4j
@RestController
public class AdvertisingController {@PostMapping("/save")public Advertising saveProject(@RequestBody Advertising advertising) {log.info("获取内容"+ ad