随笔分类 -  Spring Boot

摘要:1.实现方案 对需要进行数据权限的请求添加自定义注解,通过拦截器对请求进行拦截,判断是否需要进行数据权限验证和执行数据权限验证的逻辑。(GET请求没问题,POST请求因为HttpRequest的流getReader只能读取一次,如果在拦截器处理后,进入Handler会抛异常。此问题后面单独说) 2. 阅读全文
posted @ 2022-03-03 15:01 CoderZZZ 阅读(2151) 评论(1) 推荐(0)
摘要:1.pom.xml中加入依赖插件 1 <!-- mybatis generator 自动生成代码插件 --> 2 <plugin> 3 <groupId>org.mybatis.generator</groupId> 4 <artifactId>mybatis-generator-maven-plu 阅读全文
posted @ 2019-06-26 14:58 CoderZZZ 阅读(2107) 评论(0) 推荐(0)
摘要:1 import org.springframework.context.annotation.Configuration; 2 import org.springframework.web.servlet.config.annotation.CorsRegistry; 3 import org.springframework.web.servlet.config.annotation.W... 阅读全文
posted @ 2019-06-26 14:53 CoderZZZ