wuxw7
2018-11-17 ab9b63cd51ade836a883a59bff6c419c771a9d98
java110-core/src/main/java/com/java110/core/base/controller/BaseController.java
@@ -88,13 +88,13 @@
        while( reqHeaderEnum.hasMoreElements() ) {
            String headerName = (String)reqHeaderEnum.nextElement();
            headers.put(headerName, request.getHeader(headerName));
            headers.put(headerName.toLowerCase(), request.getHeader(headerName));
        }
        headers.put("IP",getIpAddr(request));
        headers.put("hostName",request.getLocalName());
        headers.put("port",request.getLocalPort());
        headers.put("port",request.getLocalPort()+"");
    }
@@ -214,7 +214,7 @@
     * @return
     * @throws Exception
     */
    protected BusinessServiceDataFlow writeDataToDataFlowContext(String reqJson, Map<String,String> headers) throws InitDataFlowContextException {
    protected BusinessServiceDataFlow writeDataToDataFlowContext(String reqJson, Map<String,String> headers) throws Exception {
        BusinessServiceDataFlow businessServiceDataFlow = DataFlowFactory.newInstance(BusinessServiceDataFlow.class).builder(reqJson,headers);
        return businessServiceDataFlow;
    }