-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
404 error occurs with RequestMapping(path="") #33499
Comments
Closing as a duplicate of spring-projects/spring-framework#29625 |
@bclozel spring-projects/spring-framework#29625 See below for reproduction procedure
SupplementationOccurrence Conditionscase SpringBoot ver2.7.10
case SpringBoot ver3.0.5
※The same phenomenon occurs with Versions confirmed to work
|
@koki8 This issue is a duplicate of a Spring Framework issue that is not fixed yet. So this is expected. |
@bclozel |
Apologies I thought it was not done yet. It looks like the enhancement is incomplete, I've opened spring-projects/spring-framework#30293 to fix that. |
Used version
SpringBoot3.0.0 GA
Occurrence event
When I specify an empty string in Controller's RequestMapping (@RequestMappint(path="")) and access the root path,
The mapping doesn't work properly and I get 404. I could find the endpoint is created at startup, but the request never reaches the Controller.
This event does not occur in SpringBoot3.0.0 M3. It has occurred since M4.
Reproduction steps below
Expected value
The string of 「Test」 is displayed
Status:200
Actual
Status:404
Supplement
If any character is present in the @RequestMapping of the class or method, it will be successfully mapped.
Confirmed for the following versions
The text was updated successfully, but these errors were encountered: