Skip to content

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

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

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 Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

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:

1 votes, 1 watchers

@spring-projects-issues
Copy link
Collaborator Author

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 Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants