- 博客(4)
- 收藏
- 关注
原创 SpringBoot发布到Tomcat报错整理1
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] 问题描述: 1、在springboot项目中取消自带的web容器,改用第三放web容器发布(tomcat); 2、打包项目后发布到tomcat7中,报如上错误; 检查: 1、使用自带的web容器在本地运行,成功...
2020-02-24 16:02:38
265
原创 使用post方法发送XML数据并解析返回的XML报文
//使用POST方法发送XML数据 Public String senfXMLDataByPost(String url,String xmlData)throws Exception{ CloseableHttpResponse response = null; if(null == url ||””.equals(url)){ return null; } String result = nu...
2019-10-25 14:12:52
2853
原创 Tomcat中获取xml文件模版,并修改模版内容,最终生成字符串
使用w3c.dom相关包 Public Document getXml() throws Exception{ try{ //tomcat下,要用InputStream 通过当前类(类名.class)找到xml模版文件的路径,xml文件路径最好放在根目录下的config文件中, InputStream is =javaName.clss.getClassLoader().getResourceAs...
2019-10-25 11:32:26
228
原创 将本地xml报文文件转换为String并在后台输出
将本地xml报文文件转换为String并在后台输出 public String transfor() throws Exception{ try{ File file input = new File(“…/…/fileName.xml”); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); Docum...
2019-10-18 11:30:38
669
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅