ZBQResponseController.java 704 字节
package com.sy.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class ZBQResponseController {

    @PostMapping(value = "/xml", consumes = MediaType.APPLICATION_XML_VALUE)
    public FBresponse handleXmlRequest(@RequestBody String xmlModel) {
        log.info(xmlModel);
        // 在这里对接收到的XML数据进行处理
        // 可以将接收到的XML转换为对象,或进行其他操作
        return new FBresponse();
    }
}