Commit 5a5b567c authored by 5359's avatar 5359

中登网开发

parent cc9a602c
...@@ -40,7 +40,7 @@ public class ZdwWsRequestsController extends BaseController { ...@@ -40,7 +40,7 @@ public class ZdwWsRequestsController extends BaseController {
/** /**
* 初始登记 * 中登网融资租赁-登记入口
**/ **/
@RequestMapping(value = "/zdw/service/register/init") @RequestMapping(value = "/zdw/service/register/init")
@ResponseBody @ResponseBody
......
...@@ -28,7 +28,7 @@ import com.rfp.sm.utils.SM2Utils; ...@@ -28,7 +28,7 @@ import com.rfp.sm.utils.SM2Utils;
public class ClientInitReg { 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"; static String attachmentZipPath="C://test//new//aaa2.zip";
/** /**
...@@ -101,13 +101,13 @@ public class ClientInitReg { ...@@ -101,13 +101,13 @@ public class ClientInitReg {
public static byte[] getxmlFileContent() throws TransformerFactoryConfigurationError, TransformerException, Exception{ public static byte[] getxmlFileContent() throws TransformerFactoryConfigurationError, TransformerException, Exception{
InputStream in = null; InputStream in = null;
InputStreamReader reader =null; InputStreamReader reader =null;
Document document = null; Document document = null;
File file = new File(xmlPath); File file = new File(xmlPath);
in = new FileInputStream(file); in = new FileInputStream(file);
reader = new InputStreamReader(in,"GBK"); reader = new InputStreamReader(in,"UTF-8");
//reader = new InputStreamReader(in); //reader = new InputStreamReader(in);
SAXReader saxReader = new SAXReader(); SAXReader saxReader = new SAXReader();
try { try {
...@@ -116,8 +116,8 @@ public class ClientInitReg { ...@@ -116,8 +116,8 @@ public class ClientInitReg {
e.printStackTrace(); e.printStackTrace();
return null; return null;
} }
javax.xml.transform.Transformer transformer = TransformerFactory.newInstance().newTransformer() ; javax.xml.transform.Transformer transformer = TransformerFactory.newInstance().newTransformer() ;
//transformer.setOutputProperty(OutputKeys.ENCODING, "GBK") ; //transformer.setOutputProperty(OutputKeys.ENCODING, "GBK") ;
transformer.setOutputProperty(OutputKeys.INDENT, "yes") ; transformer.setOutputProperty(OutputKeys.INDENT, "yes") ;
......
...@@ -90,7 +90,7 @@ public class ClientUtils { ...@@ -90,7 +90,7 @@ public class ClientUtils {
javax.xml.transform.Transformer transformer = TransformerFactory.newInstance().newTransformer(); javax.xml.transform.Transformer transformer = TransformerFactory.newInstance().newTransformer();
//transformer.setOutputProperty(OutputKeys.ENCODING, "GBK") ; // transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8") ;
transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty(OutputKeys.INDENT, "yes");
ByteArrayOutputStream bos = new ByteArrayOutputStream(); ByteArrayOutputStream bos = new ByteArrayOutputStream();
StreamResult streamResult = new StreamResult(bos); StreamResult streamResult = new StreamResult(bos);
......
...@@ -88,6 +88,9 @@ ...@@ -88,6 +88,9 @@
<logger name="com.hand.app.esignHclc.service.impl.SignInfoHclcFaceServiceImpl" level="INFO" additivity="false"> <logger name="com.hand.app.esignHclc.service.impl.SignInfoHclcFaceServiceImpl" level="INFO" additivity="false">
<appender-ref ref="REQ"/> <appender-ref ref="REQ"/>
</logger> </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"> <logger name="com.timevale" level="INFO" additivity="false">
<appender-ref ref="STDOUT"/> <appender-ref ref="STDOUT"/>
</logger> </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