public class ApiPathPrefixUtils extends Object
| 构造器和说明 |
|---|
ApiPathPrefixUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addApiPathPrefix(ModuleProperties properties,
org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer,
Set<String> controllerPackages)
为指定的Controller请求路径,添加上统一的前缀
|
static void |
addApiPathPrefix(ModuleProperties properties,
org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer,
String... controllerPackages)
为指定的Controller请求路径,添加上统一的前缀
|
static void |
addApiPathPrefix(ModuleProperties properties,
org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer,
String controllerPackage)
为指定的Controller请求路径,添加上统一的前缀
|
public ApiPathPrefixUtils()
public static void addApiPathPrefix(ModuleProperties properties, org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer, String... controllerPackages)
properties - 配置对象configurer - 路径配置对象controllerPackages - 需要添加路径前缀的包名public static void addApiPathPrefix(ModuleProperties properties, org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer, Set<String> controllerPackages)
properties - 配置对象configurer - 路径配置对象controllerPackages - 需要添加路径前缀的包名public static void addApiPathPrefix(ModuleProperties properties, org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer, String controllerPackage)
properties - 配置对象configurer - 路径配置对象controllerPackage - 需要添加路径前缀的包名Copyright © 2023. All rights reserved.