![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
zhangxiaojun34901
java程序开发
展开
-
JSON格式报文加签/验签接口 保证顺序
JSON格式报文加签/验签接口概述最近项目中遇到针对接口数据加签/验签的需求,如何保证接受到的字符串的顺序和发送的顺序一致,只有这样才能保证验签成功。需要将JSON字符串转换成map对象,获取map中的业务数据,如果map存在嵌套,只针对第一层进行自然排序,然后进行签名验证。验证JSON转换工具工具fastJsongsonhutool目标JSON字符串转Map是否保证原来的顺序Map转JSON字符串是否保证原来的顺序代码package com.sedaier.tes原创 2022-05-24 21:02:03 · 2464 阅读 · 0 评论 -
springboot四大组件之starter demo
swagger配置starter技术栈IDEIntelliJ IDEA 2018.2.7 x64编译打包maven 3.3.9结构└─sedaier-blog-starter ├─sedaier-blog-starter-package │ ├─swagger-spring-boot-stater │ | ├─src │ | │ ├─main │ | │ │ ├─java │ | │ │ │ └─原创 2022-01-24 19:42:13 · 304 阅读 · 0 评论 -
Ubuntu安装nacos的dockerfile
创建jdk1.8的dockerfile基础镜像ubuntu拉取docker pull ubuntudocker images下载Oracle_jdkjdk-8u251-linux-x64.tar.gz创建Dockerfile文件# Ubuntu with JDK 8# Author zxj# build a new image with basic centosFROM ubuntu# who is the authorMAINTAINER zxj# make a原创 2021-12-31 10:01:56 · 1032 阅读 · 0 评论 -
利用hutool生成和验证JWT的示例
文章目录利用hutool生成和验证JWT的示例简介示例CodeJwtTest.javaJwtVerify.java利用hutool生成和验证JWT的示例简介利用hutool工具类生成json-web-tokenhutool-all在5.7以上的版本才支持jwt<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId>原创 2021-10-25 20:50:18 · 15536 阅读 · 10 评论 -
spring-framework-5.2.x源码导入eclipse笔记(一)
文章目录前提概要(踩坑宝典)Eclipse导入成功路径导入目录集成环境EclipseJDKAspectJKotlinGroovyTestNgGradleWindows安装JDK1.8where java命令Gradle添加阿里云导入步骤Demoapplication.xmlsrcPerson.javaSpringTest.java前提概要(踩坑宝典)由于工作中一直用Eclipse比较多,所以就想把Spring源码导入到Eclipse中玩玩,每天晚上下班回去搞一点.哪知各种报错一堆问题,有的问题提示都没有原创 2020-11-26 21:51:39 · 476 阅读 · 3 评论