- 博客(3)
- 收藏
- 关注
原创 获取xml节点
import java.util.regex.Matcher; import java.util.regex.Pattern; /* *使用零宽断言获取xml值中特定节点的值 *xml:xml字符串 *nodeName:节点名 *该方法只支持xml格式,适用于对接类接口获取返回报文中内容(报文较小,节点单一) */ public static String zeroWidthAssertion(String xml,String nodeName){
2021-03-22 11:53:42 184
原创 bean转xml
public static void main(String[] args) throws Exception{ Insurance insurance = new Insurance(); // List<InsRate> list = new ArrayList<InsRate>(); // InsRate insRate = new InsRate(); // List<OpType> opTypes =..
2021-02-26 17:25:08 54
原创 xml转bean
import javax.xml.bind.JAXBContext; import javax.xml.bind.Unmarshaller; import java.io.StringReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.P.
2021-02-26 17:18:35 89
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人