上一页 1 2 3 4 5 6 ··· 30 下一页
摘要: 1.在新GIT仓库创建一个新的仓库存放本地代码(什么文件都不要) 2.查看本地代码关联GIT地址 git remote -v 3.删除本地的远程仓库地址 git remote remove origin 4.绑定新的GIT地址 git remote add origin 自己新创建的远程仓库地址 5 阅读全文
posted @ 2022-01-25 16:42 唐胜伟 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 接口传输数据加密、解密、加签、验签(AES,RSA,Sign) 理解公钥与私钥:https://songlee24.github.io/2015/05/03/public-key-and-private-key/ Demo public static void testCert() { RSA rs 阅读全文
posted @ 2022-01-21 14:50 唐胜伟 阅读(1305) 评论(0) 推荐(0) 编辑
摘要: JAVA查询树结构数据(省市区)使用hutool工具实现 代码: @PostMapping("/getTree") public Object getTree() { // 查询数据 List<LxhpArea> areaList = areaService.list(); // 构建的整个树数据 阅读全文
posted @ 2021-08-24 16:52 唐胜伟 阅读(1945) 评论(0) 推荐(0) 编辑
摘要: SVN代码迁移至Gitlab 1.导出SVN提交用户(需要在SVN代码目录执行,并且要在GIT BASH 窗口运行) svn log --xml | grep "^<author" | sort -u | \awk -F '<author>' '{print $2}' | awk -F '</aut 阅读全文
posted @ 2021-08-20 17:33 唐胜伟 阅读(817) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 获取项目路径或文件 @GetMapping("/getPath") public void getPath() { // 获取路径三种方法方法,使用Spring Boot 方式,只有 pathA 部署到服务器获取到得路径是能直接使用得 String pathA = Syste 阅读全文
posted @ 2021-08-18 14:32 唐胜伟 阅读(5062) 评论(0) 推荐(1) 编辑
摘要: Spring Boot使用 @Async 注解进行异步调用 创建异步调用线程池配置代码: import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configu 阅读全文
posted @ 2021-07-12 14:07 唐胜伟 阅读(95) 评论(0) 推荐(0) 编辑
摘要: JAVA流操作 file 转 数组,方法一: File file = new File("D:\\111.pdf"); // File 转数组 FileInputStream fis = new FileInputStream(file); ByteArrayOutputStream bos = n 阅读全文
posted @ 2020-12-31 13:47 唐胜伟 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 增强for、lambda for、stream 遍历List 结束方法 or 跳过循环本次循环 List<Integer> list = Arrays.asList(1, 2, 3, 4); System.out.println("forEach"); list.forEach(e -> { if 阅读全文
posted @ 2020-08-28 10:20 唐胜伟 阅读(3864) 评论(0) 推荐(0) 编辑
摘要: 应用编写的防火墙规则: iptables-restore < /etc/iptables/rules.v6 在 INPUT 表指定位置添加一条规则: iptables -I INPUT 6 -p tcp -m state --state NEW -m tcp --dport 8082 -j ACCE 阅读全文
posted @ 2020-08-04 15:59 唐胜伟 阅读(831) 评论(0) 推荐(0) 编辑
摘要: Idea 修改字体大小 阅读全文
posted @ 2020-06-07 23:03 唐胜伟 阅读(1499) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 30 下一页