SpringBoot
小南城_
这个作者很懒,什么都没留下…
展开
-
生成jwt私钥与公钥
生成公钥:keytool -genkeypair -alias guobing -keyalg RSA -keypass guobing -keystore guobing.jks -validity 365 -storepass guobing--查看字段意思keytool -genkeypair --help解析公钥:keytool -list -rfc --keystore bing.jks| openssl x509 -inform pem -pubkey...原创 2021-08-16 15:35:49 · 569 阅读 · 0 评论 -
java限制请求多次提交
验证接口重复提交方式一 (使用HandlerInterceptorAdapter)自定义注解 - 因为此方法request只能获取一次body 故此只能做限制请求操作 并不能判断传输数据是否一致import java.lang.annotation.*;@Inherited@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface RepeatSubmit {原创 2021-04-07 15:28:28 · 522 阅读 · 0 评论