This commit is contained in:
tanghc
2020-01-16 10:21:40 +08:00
parent 8537ea8a70
commit 626fd3a8e4

View File

@@ -14,8 +14,8 @@ import com.gitee.sop.gatewaycommon.secret.IsvManager;
import com.gitee.sop.gatewaycommon.util.RequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
@@ -26,7 +26,7 @@ import java.util.Map;
* @author tanghc
*/
@Slf4j
@Controller
@RestController
public class ConfigChannelController {
private static Map<String, Class<? extends ChannelMsgProcessor>> processorMap = new HashMap<>(16);
@@ -43,7 +43,7 @@ public class ConfigChannelController {
@Value("${zuul.secret}")
private String secret;
@PostMapping("/sop/configChannelMsg")
@PostMapping("/configChannelMsg")
public String configChannel(HttpServletRequest request) throws IOException {
String requestJson = RequestUtil.getText(request);
String sign = request.getHeader("sign");