-
Notifications
You must be signed in to change notification settings - Fork 38k
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
Introduce SimpleUrlHandlerMapping constructor that accepts an order and a Map #23362
Comments
If we introduce explicit constructors for |
The spring-webmvc variant has a lot more properties which makes picking urlMap and order out of all of them a bit more random. On the other hand if we were to pick one, urlMap does make sense on both sides. Maybe then order can be left to being expressed with |
I agree that picking
That unfortunately won't work since I think it would be OK to introduce the following constructors for both types.
Thoughts? |
I'd very much like that. |
FWIW, |
I use
SimpleUrlHandlerMapping
for reactive websockets and I either end up instantiating the bean and then calling.setUrlMap(...)
andsetOrder(...);
Or I create an anonymous subclass and call those setters in that. Either way, tedious. Please add a constructor so it can be a one-liner :-)The text was updated successfully, but these errors were encountered: