-
Notifications
You must be signed in to change notification settings - Fork 826
JAV-495 set url pattern default value #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JAV-495 set url pattern default value #262
Conversation
…ot specified, set a default URL pattern to the configuration.
…ted to a JavaChassis project.
@wujimin 这样修改行吗?RestServletInjector在RestServletInitializer和CseXmlWebApplicationContext有调用,现在的修改方案应该只影响到RestServletInitializer。 |
|
||
@Override | ||
public void handle(Invocation invocation, AsyncResponse asyncResponse) throws Exception { | ||
LOGGER.info("If you see this log, that means this demo project has been converted to ServiceComb framework."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make the case automatically
eg:
if response type is User
in handler, assign user.name = "myHandler"
then consumer determine, if user.name is empty, means did not run with serviceComb handlers
…anged URL cause vertx found wrong failureHandler solution:changed URL only saved in VertxServerRequestToHttpServletRequest, not save to HttpServerRequest
* JAV-492 Edge service not properly handle 404 requests * JAV-492 Edge service not properly handle 404 requests * Update TestEdgeInvocation.java * Update TestEdgeInvocation.java
…ot specified, set a default URL pattern to the configuration.
…ted to a JavaChassis project.
….com/yhs0092/ServiceComb-Java-Chassis into JAV-495_set_urlPattern_default_value
This PR is abandoned. And I will create another PR after improving the demo. |
See details in https://servicecomb.atlassian.net/browse/JAV-495
If the RestServletInitializer is invoked and URL pattern is not specified, set a default URL pattern "/*" to avoid the initialization failure of JavaChassis servlet.