DataController.java 627 Bytes
package com.viontech.controller;

import com.viontech.process.Process;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * .
 *
 * @author 谢明辉
 * @date 2020/8/18
 */
@RestController
public class DataController {

    @Autowired
    Process process;

    @PostMapping("/data")
    public Object receiveData(@RequestBody String dataStr) throws Exception{
        process.process(dataStr);

        return null;
    }


}