Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

url action名以s结尾的找不到相对应的action,报500错误。 #26

Closed
chenmocoder opened this issue Aug 8, 2017 · 1 comment

Comments

@chenmocoder
Copy link

chenmocoder commented Aug 8, 2017

"/hidden-rectification-orders/:id/set-condition" {
              methods = [HttpMethod.POST]
              upstreamURLs = [
                                [host: 'localhost', port: 8090, url: '/hidden-rectification-orders/:id/set-condition']
                        ]
           }

后台代码controller: HiddenRectificationOrderController
action: setStatus

访问这个方法 会报500错误。
bb157d3be43f7f1a93263dd6d8a3eedb

@chenmocoder
Copy link
Author

最后发现是我们urlmapping 自己解析的问题,
actionStr matches: /\S+[^s]$/ 用正则解析的时候,就是去解析那些不以s结尾的单词

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant