演示POST方式发送通知信息,请求参数位于request中的body中
记录一次回调参数的对接,写起来感觉很简单,但是表达就感觉特别难
文章内容仅供参考,内容有误请及时指出纠正
回调通知示例
第三方回调通知参数,我们这边需要提供一个url,用来接收这个参数。
这次的回调参数位于request中的body中
提供的地址需要是外网地址
回调地址:http://url/test/saveNotify
controller层,进行接收回调参数
程序执行完后必须打印输出“success”(不包含引号)
package com...controller.test;
import com.service.jumi.JuMiAiService;
import com.web.BaseController;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.</