Commit 189a995db6b954d3f8412853b6352e43d33b718a
Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro
Showing
4 changed files
with
4 additions
and
3 deletions
README.md
| @@ -86,7 +86,7 @@ | @@ -86,7 +86,7 @@ | ||
| 86 | | [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.4.1 | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | | 86 | | [MapStruct](https://mapstruct.org/) | Java Bean 转换 | 1.4.1 | [文档](http://www.iocoder.cn/Spring-Boot/MapStruct/?yudao) | |
| 87 | | [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.16.14 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | | 87 | | [Lombok](https://projectlombok.org/) | 消除冗长的 Java 代码 | 1.16.14 | [文档](http://www.iocoder.cn/Spring-Boot/Lombok/?yudao) | |
| 88 | | [JUnit](https://junit.org/junit5/) | Java 单元测试框架 | 5.7.0 | - | | 88 | | [JUnit](https://junit.org/junit5/) | Java 单元测试框架 | 5.7.0 | - | |
| 89 | -| [Mockito](https://junit.org/junit5/) | Java Mock 框架 | 3.6.28 | - | | 89 | +| [Mockito](https://github.com/mockito/mockito) | Java Mock 框架 | 3.6.28 | - | |
| 90 | 90 | ||
| 91 | **前端** | 91 | **前端** |
| 92 | 92 |
src/main/java/cn/iocoder/dashboard/framework/resilience4j/《芋道 Spring Boot 安全框架 Spring Security 入门》.md deleted
| 1 | -<http://www.iocoder.cn/Spring-Boot/Spring-Security/?github> |
src/main/java/cn/iocoder/dashboard/framework/resilience4j/《芋道 Spring Boot 服务容错 Resilience4j 入门》.md
0 → 100644
| 1 | +<https://www.iocoder.cn/Spring-Boot/Resilience4j/?yudao> |
src/main/java/cn/iocoder/dashboard/framework/web/config/WebConfiguration.java
| @@ -27,9 +27,10 @@ public class WebConfiguration implements WebMvcConfigurer { | @@ -27,9 +27,10 @@ public class WebConfiguration implements WebMvcConfigurer { | ||
| 27 | 27 | ||
| 28 | @Override | 28 | @Override |
| 29 | public void configurePathMatch(PathMatchConfigurer configurer) { | 29 | public void configurePathMatch(PathMatchConfigurer configurer) { |
| 30 | + // 设置 API 前缀,仅仅匹配 controller 包下的 | ||
| 30 | configurer.addPathPrefix(webProperties.getApiPrefix(), clazz -> | 31 | configurer.addPathPrefix(webProperties.getApiPrefix(), clazz -> |
| 31 | clazz.isAnnotationPresent(RestController.class) | 32 | clazz.isAnnotationPresent(RestController.class) |
| 32 | - && clazz.getPackage().getName().startsWith(webProperties.getControllerPackage())); | 33 | + && clazz.getPackage().getName().startsWith(webProperties.getControllerPackage())); // 仅仅匹配 controller 包 |
| 33 | } | 34 | } |
| 34 | 35 | ||
| 35 | // ========== Filter 相关 ========== | 36 | // ========== Filter 相关 ========== |