This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245234 - Spring Environment Property usage in @Value annotation and in env.getProperty to recognize property name and property value for autocomplete and hints
Summary: Spring Environment Property usage in @Value annotation and in env.getProperty...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 8.0.1
Hardware: PC Other
: P1 normal with 2 votes (vote)
Assignee: Martin Fousek
Depends on:
Reported: 2014-06-25 13:33 UTC by elennaro
Modified: 2014-07-05 09:03 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description elennaro 2014-06-25 13:33:37 UTC
For example when we have file in resources:

and we added it to class by @PropertySource("classpath:/settings/")annotation

After we auto-wire environment like

Environment env;

and than try to use any of property by calling:

It will be great to be able to use ctrl+space autocomplete and to see value set in file in hint or somewhere.

Same for @Value("my.second.prop") annotation for class property.
Comment 1 Martin Fousek 2014-07-03 06:34:50 UTC
Thanks for your report. It's a good tip, but I can't promise any target milestone since I don't know how much we'll invest in Spring area into the next release. :/
Comment 2 elennaro 2014-07-05 09:03:24 UTC
Thanks for an answer. It sounds pretty sad. But I hope a lot of developers will be happy to see this feature in future releases.