10 2021 档案
摘要:如果是使用application/x-www-form-urlencoded或者multipart/form-data,则在使用request.getParameterMap或者request.getParameter方法后使用request.getInputStream无法获取到数据,反之同理 但
阅读全文
摘要:引入依赖: <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.4.0</version> </dependency> 生成token代码: public static void
阅读全文
摘要:导入依赖: <dependencies> <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>3.0.3</vers
阅读全文
摘要:1.babel转码(将ES6及新语法转为ES5语法) (1)下载babel与babel预设 npm install babel-cli -g npm install babel-preset-env --save-dev (2)添加.babelrc文件: { "presets": ["env"],
阅读全文
摘要:// 优先查找最匹配的异常类型 @ControllerAdvice public class GlobalExceptionHandler { // 通用异常处理 @ResponseBody @ExceptionHandler(Exception.class) public R error(Exce
阅读全文
摘要:1.配置 1.1.pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema
阅读全文