摘要: 启动类 public static void main(String[] args) { SpringApplication.run(ZSClientApplication.class, args); System.out.println("Client OK"); try { ZSServerSo 阅读全文
posted @ 2022-04-26 15:09 一个追求未知的人 阅读(225) 评论(0) 推荐(0)
摘要: 编写一个认证拦截器 public class Auth implements HandlerInterceptor { private static Logger log = Logger.getLogger(Auth.class); //获取密钥 private String secretKey 阅读全文
posted @ 2022-04-26 14:57 一个追求未知的人 阅读(109) 评论(0) 推荐(0)
摘要: 自定义注解@Retention(RetentionPolicy.RUNTIME)@Target(ElementType.METHOD)@Documentedpublic @interface OperationLog { //请求方法名称 String operationName() default 阅读全文
posted @ 2022-04-26 14:51 一个追求未知的人 阅读(158) 评论(0) 推荐(0)
摘要: 错误代码: int i =1;bre = new BufferedReader(new FileReader(request.getBody().getLocalpath()+request.getBody().getFilename()));//此时获取到的bre就是整个文件的缓存流String 阅读全文
posted @ 2022-04-26 08:55 一个追求未知的人 阅读(863) 评论(0) 推荐(0)