摘要: 方式一:通过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) 编辑