随笔分类 -  Java-功能代码

主要为一些功能性的代码
摘要:Java-Mqtt-ActiveMq(3) 1、maven <dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv3</artifactId> <version>1.2.5< 阅读全文
posted @ 2020-09-25 10:57 趙楊 阅读(367) 评论(0) 推荐(0) 编辑
摘要:Java-Mqtt-ActiveMq(2) 不使用回调函数获取订阅信息 1、maven <!-- https://mvnrepository.com/artifact/org.fusesource.hawtbuf/hawtbuf --> <dependency> <groupId>org.fuses 阅读全文
posted @ 2020-09-25 10:52 趙楊 阅读(331) 评论(0) 推荐(0) 编辑
摘要:Java-Mqtt-ActiveMq(1) 通过Java基于Mqtt协议与ActiveMq交互,订阅(获取消息)/推送主题 1、Maven依赖 <dependency> <groupId>org.springframework.integration</groupId> <artifactId>sp 阅读全文
posted @ 2020-09-25 10:40 趙楊 阅读(886) 评论(0) 推荐(0) 编辑
摘要:userName = userName.replace("\"", ""); 阅读全文
posted @ 2020-09-16 17:41 趙楊 阅读(621) 评论(0) 推荐(0) 编辑
摘要:/** * 静态 */ private static String FaceDataPath; @Value("${config.FACE_DATA_PATH}") public void setFaceDataPath(String faceDataPath) { FaceDataPath = f 阅读全文
posted @ 2020-09-16 17:40 趙楊 阅读(348) 评论(0) 推荐(0) 编辑
摘要:Java-FTP上传下载 1、Maven <dependency> <groupId>commons-net</groupId> <artifactId>commons-net</artifactId> <version>1.4.1</version> </dependency> 2、代码 pack 阅读全文
posted @ 2020-07-16 17:35 趙楊 阅读(157) 评论(0) 推荐(0) 编辑
摘要:Java-byte转换 1 import org.springframework.stereotype.Component; 2 import org.springframework.util.StringUtils; 3 4 import java.io.*; 5 6 /** 7 * byte和各 阅读全文
posted @ 2020-07-16 17:31 趙楊 阅读(177) 评论(0) 推荐(0) 编辑
摘要:Java-执行shell命令 1、本地调用 1 import ch.ethz.ssh2.Connection; 2 import ch.ethz.ssh2.Session; 3 import lombok.extern.slf4j.Slf4j; 4 import org.springframewor 阅读全文
posted @ 2020-07-16 17:27 趙楊 阅读(524) 评论(0) 推荐(0) 编辑
摘要:Java-文件加密传输(摘要+签名) 文件加密传输其实就是将文件以二进制格式进行传输。其中加密文件主要由:源文件二进制文件、源文件数字摘要、数字签名、特征码等等组成。摘要可确认文件的唯一性,数字签名则是对摘要进行了加密。 本文主要记录使用RSA加密方式其中生成RSA密钥主要介绍二种方式: 1、安装o 阅读全文
posted @ 2020-07-15 20:19 趙楊 阅读(2824) 评论(0) 推荐(0) 编辑
摘要:Java-File转MultipartFile 1、依赖 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>5.2.7.RELEASE</version> 阅读全文
posted @ 2020-07-03 13:58 趙楊 阅读(1000) 评论(0) 推荐(0) 编辑
摘要:package com.stefanie.sun.bean.TimeTest; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation 阅读全文
posted @ 2020-06-16 15:27 趙楊 阅读(136) 评论(0) 推荐(0) 编辑
摘要:public class ListChangeString { public static void main(String[] args) { List<String> list1 = Arrays.asList("文学","小说","历史","言情","科幻","悬疑"); List<Strin 阅读全文
posted @ 2020-05-15 09:27 趙楊 阅读(14856) 评论(0) 推荐(1) 编辑
摘要:判断List是否包含元素 List list = new ArrayList();list.add("aa");list.add("bb");list.add("cc");System.out.print(list.contains("cc"));//输出结果--trueSystem.out.pri 阅读全文
posted @ 2020-05-08 15:43 趙楊 阅读(1215) 评论(0) 推荐(0) 编辑
摘要:https://www.ktanx.com/blog/p/3937https://www.cnblogs.com/jpfss/p/8441199.htmlhttps://blog.csdn.net/u014001866/article/details/51393853 阅读全文
posted @ 2020-04-28 17:51 趙楊 阅读(158) 评论(0) 推荐(0) 编辑
摘要:链接:https://pan.baidu.com/s/1ALzj3TzPTCCGQC6b_NRGUQ 提取码:m0ua 阅读全文
posted @ 2020-04-28 17:50 趙楊 阅读(350) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/ching_zhi/article/details/53673989 阅读全文
posted @ 2020-04-14 14:18 趙楊 阅读(114) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/u010142437/article/details/102871754 阅读全文
posted @ 2020-04-14 14:16 趙楊 阅读(1146) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_15037231/article/details/80624064 https://blog.csdn.net/LuQiaoYa/article/details/88233846 阅读全文
posted @ 2020-04-14 14:15 趙楊 阅读(110) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/gnail_oug/article/details/80324120 阅读全文
posted @ 2020-04-14 14:08 趙楊 阅读(117) 评论(0) 推荐(0) 编辑
摘要:/** * 对数字字符串 不 四舍五入处理 * * @param str 处理参数 * @param scale 保留小数位数 * @return 返回值 */ public class RoundNoOfUtil { public static String RoundNoOf(String st 阅读全文
posted @ 2020-04-13 17:03 趙楊 阅读(1698) 评论(0) 推荐(0) 编辑

  
点击右上角即可分享
微信分享提示