Commit bdff3c2d authored by 5359's avatar 5359

dev中登网开发

parent 38a62aea
......@@ -40,7 +40,7 @@ public class ZdwWsRequestsController extends BaseController {
/**
* 初始登记
* 中登网融资租赁-登记入口
**/
@RequestMapping(value = "/zdw/service/register/init")
@ResponseBody
......
......@@ -28,7 +28,7 @@ import com.rfp.sm.utils.SM2Utils;
public class ClientInitReg {
static String xmlPath="C://test//new//aaa.xml";
static String xmlPath="F://L21LH00032-1-4.xml";
static String attachmentZipPath="C://test//new//aaa2.zip";
/**
......@@ -101,13 +101,13 @@ public class ClientInitReg {
public static byte[] getxmlFileContent() throws TransformerFactoryConfigurationError, TransformerException, Exception{
InputStream in = null;
InputStreamReader reader =null;
Document document = null;
File file = new File(xmlPath);
in = new FileInputStream(file);
reader = new InputStreamReader(in,"GBK");
reader = new InputStreamReader(in,"UTF-8");
//reader = new InputStreamReader(in);
SAXReader saxReader = new SAXReader();
try {
......@@ -116,8 +116,8 @@ public class ClientInitReg {
e.printStackTrace();
return null;
}
javax.xml.transform.Transformer transformer = TransformerFactory.newInstance().newTransformer() ;
//transformer.setOutputProperty(OutputKeys.ENCODING, "GBK") ;
transformer.setOutputProperty(OutputKeys.INDENT, "yes") ;
......
......@@ -90,7 +90,7 @@ public class ClientUtils {
javax.xml.transform.Transformer transformer = TransformerFactory.newInstance().newTransformer();
//transformer.setOutputProperty(OutputKeys.ENCODING, "GBK") ;
// transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8") ;
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
StreamResult streamResult = new StreamResult(bos);
......
......@@ -88,6 +88,9 @@
<logger name="com.hand.app.esignHclc.service.impl.SignInfoHclcFaceServiceImpl" level="INFO" additivity="false">
<appender-ref ref="REQ"/>
</logger>
<logger name="com.hand.app.zhongDengWang.service.impl.ZdwWsRequestsServiceImpl" level="INFO" additivity="false">
<appender-ref ref="REQ"/>
</logger>
<logger name="com.timevale" level="INFO" additivity="false">
<appender-ref ref="STDOUT"/>
</logger>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment