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

@Value from application.properties part of @RequestMapping #795

Open
dimylik opened this issue Jan 31, 2019 · 1 comment
Open

@Value from application.properties part of @RequestMapping #795

dimylik opened this issue Jan 31, 2019 · 1 comment

Comments

@dimylik
Copy link

dimylik commented Jan 31, 2019

Hi team,

Very interesting case I got.

I have property from application properties as part of my Parent Controller, like:

@RequestMapping(value="${api.version}/api")

api.version=v1

And children controller

@RequestMapping(value="/messages")

So constructing hateoas link I expect "/v1/api/messages"
But I got "/${api.version}/api/messages"

Raise a question in here as well

https://stackoverflow.com/questions/54447988/autowired-variables-inside-hateoas-links

Please suggest elegant fix apart from parsing manually.
Thanks!

@gregturn
Copy link
Contributor

Duplicates #361.

Based on your feedback I may be able to rebase, review and perhaps get @schauder to review my handiwork.

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

No branches or pull requests

2 participants