重构路由监控

pull/7/MERGE
tanghc 4 years ago
parent ca6021a67c
commit ad16abe9f4
  1. 7
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/route/ServiceRouteController.java

@ -2,7 +2,6 @@ package com.gitee.sop.servercommon.route;
import com.gitee.sop.servercommon.bean.ServiceApiInfo;
import com.gitee.sop.servercommon.util.OpenUtil;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
@ -17,12 +16,10 @@ import javax.servlet.http.HttpServletResponse;
* @author tanghc
*/
@Slf4j
@Getter
@RestController
public class ServiceRouteController {
private static final String SECRET = "a3d9sf!1@odl90zd>fkASwq";
private static final String HEADER_RESTFUL = "restful";
private static final ApiMetaBuilder apiMetaBuilder = new ApiMetaBuilder();
@ -42,10 +39,6 @@ public class ServiceRouteController {
return getServiceRouteInfo(request, response);
}
protected ApiMetaBuilder getApiMetaBuilder() {
return new ApiMetaBuilder();
}
protected ServiceRouteInfo getServiceRouteInfo(HttpServletRequest request, HttpServletResponse response) {
String serviceId = environment.getProperty("spring.application.name");
if (serviceId == null) {

Loading…
Cancel
Save