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-projects-issues opened this issue Oct 30, 2018 · 1 comment
Closed

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

spring-projects-issues opened this issue Oct 30, 2018 · 1 comment
Assignees
Labels
in: web status: duplicate type: enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues 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

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Nov 30, 2018

Rossen Stoyanchev commented

This is a duplicate of #21585.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web status: duplicate type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants