上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 226 下一页
摘要: https://blog.csdn.net/luo15242208310/article/details/108195803 参考链接:der pem cer crt key pfx等概念及区别参考连接:Java 证书管理(keytool实例),jks\crt\cet\ketstore 编码格式X. 阅读全文
posted @ 2021-05-25 14:30 牧之丨 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: 在使用restTemplate访问内网接口时,不打算指host,支持ip访问,所以我们需要再header中指定host.但经调试,发现HttpURLConnection中Host无法覆盖.解决方案: Object requestBody = ImmutableMap.of("username", u 阅读全文
posted @ 2021-05-20 22:52 牧之丨 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 最近一个需求用到了SFTP上传功能,同事之前已经封装好了SFTP工具类,用的是JSch,本着不要重复造轮子的想法,就直接拿来用了。交代下环境,JDK为1.7,JSch版本为0.1.51。自测通过、测试环境也OK,但上到生产环境却抛出Algorithm negotiation fail异常,当即傻眼, 阅读全文
posted @ 2021-05-18 00:41 牧之丨 阅读(6780) 评论(0) 推荐(0) 编辑
摘要: 方式一:通过java.net.InetAddress类获取 1 2 3 4 5 6 7 8 public void test1() { try { InetAddress addr = InetAddress.getLocalHost(); System.out.println("IP地址:" + 阅读全文
posted @ 2021-05-15 11:52 牧之丨 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 引言在Web应用开发中,安全一直是非常重要的一个方面。Spring Security基于Spring 框架,提供了一套Web应用安全性的完整解决方案。 JwT (JSON Web Token) 是当前比较主源的Token令牌生成方案,非常适合作为登录和授权认证的凭证。 这里我们就使用 Spring 阅读全文
posted @ 2021-05-15 11:51 牧之丨 阅读(2706) 评论(0) 推荐(0) 编辑
摘要: Pom中引入 <!-- security --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 阅读全文
posted @ 2021-05-15 11:50 牧之丨 阅读(444) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/yilezhu/p/10645804.html 开始之前先看一下gRPC与带有j'son的HTTP APIs对比表格 gRPC的优势 性能 gRPC消息使用一种有效的二进制消息格式protobuf进行序列化。Protobuf在服务器和客户机上的序列化非 阅读全文
posted @ 2021-05-15 10:57 牧之丨 阅读(242) 评论(0) 推荐(0) 编辑
摘要: CURL 发送POST请求 curl -H "Content-Type: application/json" -X POST -d '{"user_id": "123", "coin":100, "success":1, "msg":"OK!" }' "http://192.168.0.1:8001 阅读全文
posted @ 2021-05-13 22:45 牧之丨 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: https://nullget.sourceforge.io/?q=node/895 grpc与http2的关系 grpc client 发送包到原生的http2 server client收到报错: panic: rpc error: code = 9 desc = transport: rece 阅读全文
posted @ 2021-05-13 22:23 牧之丨 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: chgrp 用户名 文件名 -R chown 用户名 文件名 -R -R表示递归目录下所有文件 以上部分已验证 一、修改文件所属组群——chgrp 修改文件所属组群很简单-chgrp命令,就是change group的缩写(我们可以利用这些来记忆命令) 语法:chgrp 组群 文件名/目录 举例: 阅读全文
posted @ 2021-05-07 14:30 牧之丨 阅读(1926) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 226 下一页