Home Ask Login Register

Developers Planet

Your answer is one click away!

mkarthik415 February 2016

how to base url and access application.properties whsn using Vaadin Spring boot 1.0.0

Developing application using Vaadin Spring 1.0.0 and trying to find out

1.how to excess application.propertie file content from vaadin UI.

2.Also how to get Base URL when using vaadin 7.6

Any inputs would be appreciated.



jon martin solaas February 2016

You can access properties like this with Spring, using annotation:

String USER;

To get base url you can get the URL and then remove context-path:

((VaadinServletRequest) vaadinRequest).getRequestURL()

Post Status

Asked in February 2016
Viewed 3,122 times
Voted 6
Answered 1 times


Leave an answer

Quote of the day: live life