CustomResponseController.java
807 字节
package com.tianbo.analysis.controller;
import com.tianbo.analysis.handle.CustomResponseHandleThread;
import com.tianbo.analysis.service.CustomResponseAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/cust")
public class CustomResponseController {
@Autowired
CustomResponseAnalysisService customResponseAnalysisService;
@RequestMapping("analysis")
public boolean analysis(@RequestParam(value = "xml",required = true) String xml){
boolean result = customResponseAnalysisService.xmlAnalysis(xml);
return result;
}
}