Skip to content

[Question] 是否支持多前缀注册到同一个controller #6327

@lanxiaolin-sz

Description

@lanxiaolin-sz

Question

现在需要使用新的前缀,旧的前缀在切换过程需要保留;我要怎么做才可以实现在同一个controller里面注册两个路由前缀规则呢?
现在这样子进行配置,只有第一个前缀可以正常注册到devide的rule:

@RequestMapping(value = {
        "/mypath1/config",  
        "/other-path/config",
})
@Tag(name= "地址配置")
@ShenyuRequestMapping(path = {
        "/mypath1/config",  
        "/other-path/config",
})
public class MyConfigController {
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions