...
|
...
|
@@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
...
|
...
|
@@ -180,4 +181,13 @@ public class NginxSyncService { |
|
|
|
|
|
return logMsgResp;
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/collectNginxAgentLog")
|
|
|
@ResponseBody
|
|
|
public BaseResponse collectNginxAgentLog(@RequestBody LogMsg logMsg) {
|
|
|
BaseResponse baseResponse = new BaseResponse();
|
|
|
// 插入日志管理
|
|
|
logService.inLogMsg(logMsg);
|
|
|
return baseResponse;
|
|
|
}
|
|
|
} |
...
|
...
|
|