java
乏困的剑圣
这个作者很懒,什么都没留下…
展开
-
java创建json
java创建json 1.直接用JSONObject 的 对象.put(key,value) @Test public void test() { 删除线格式 JSONObject json3 = new JSONObject(); Object nullObj = null; json3.put("name", "孙悟空"); json3.put("changeTimes", 72); j原创 2021-06-10 11:10:42 · 643 阅读 · 0 评论 -
maven导出文件失败
maven导出文件失败 在Maven的配置文件添加以下配置 <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties<原创 2021-05-29 15:30:06 · 67 阅读 · 0 评论 -
DES3Util加密解密工具类
DES3Util加密解密工具类 本人实测可用!本人实测可用!本人实测可用! ```java import java.math.BigInteger; import java.security.Key; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import javax.crypto.Cipher; import javax.crypto.SecretKeyFactory; imp转载 2021-05-18 14:37:55 · 652 阅读 · 0 评论 -
java 调用 C# webapi
java 调用 C# webapi 最近项目需要 java调用 .net 的webapi。 对于get来说很简单,但是post方法遇到了些问题,最后也是曲线救国。 先看代码 ```java public static void main(String[] args) throws Exception { //DoGet(String url) String resultGet = DoGet("http://localhost:14248/api/Report/GetTest?parentid=40")转载 2021-05-18 14:29:39 · 252 阅读 · 0 评论