Skip to content
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

Add Path to @Controller [SPR-17447] #21979

Closed
spring-issuemaster opened this issue Oct 30, 2018 · 1 comment
Closed

Add Path to @Controller [SPR-17447] #21979

spring-issuemaster opened this issue Oct 30, 2018 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Oct 30, 2018

GabrielBB opened SPR-17447 and commented

Instead of:

@RestController

@RequestMapping("/api/")

It would be cleaner to do this:

@RestController("/api/")


Reference URL: spring-projects/spring-boot#15021

Issue Links:

  • #21585 Add ability to specify request mapping within @RestController ("duplicates")

1 votes, 1 watchers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.