dromara / fast-request

IntelliJ IDEA plugin Restful Fast Request
https://api-buddy.com/en
Other
456 stars 116 forks source link

当RequestMapping中路径存在常量引用字段或加法符号时,自动获取的url不正确 #202

Closed ddxl123 closed 1 year ago

ddxl123 commented 1 year ago
const val routeNoLoginRequired = "no_login"
@RestController
@RequestMapping(routeNoLoginRequired+ "/knowledge_base")
class KnowledgeBaseController(
        val uniteService: UniteService
) {

(图标)    @PostMapping("/query_categorys")
    fun queryCategorys(@RequestBody knowledgeBaseQueryDto: KnowledgeBaseQueryDto){
        ...
    }

上面点击图标自动获取到的url应该是 /no_login/knowledge_base/query_categorys, 但却获取到的是 /routeNoLoginRequired + /knowledge_base/query_categorys

idea版本:2022.2.4 Restful Fast Request版本:2023.1.1.2

ddxl123 commented 1 year ago

url由配置替换,无法将" + " 替换成空字符 "",看来只能"${xxx}"的写法了

kings1990 commented 1 year ago

I will fix in the next version