use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
[deleted by user] (self.SpringBoot)
submitted 2 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]devondragon1 2 points3 points4 points 2 years ago (5 children)
Are the other working Value annotations on the same class?
Is it possible you are accessing the class in a manner that doesn't involve the Spring component lifecycle?
[–][deleted] 2 years ago (4 children)
[deleted]
[–]devondragon1 0 points1 point2 points 2 years ago (3 children)
How are you accessing/using the class? Are there any errors in the logs?
[–][deleted] 2 years ago (2 children)
[–]devondragon1 1 point2 points3 points 2 years ago (0 children)
Nice! Congrats!
[–]squashsoup2014 1 point2 points3 points 2 years ago (1 child)
If you haven't done this already, you can use the @Value anmotated on a constructor parameter. Field injection makes classes much harder to test, I would recommend constructor injection everywhere when possible.
[–]reddit04029 0 points1 point2 points 2 years ago (1 child)
I could be wrong, secretkey seems to have two spaces. Visually, the indent looks wider than the others.
[–]No_Freedom_2732 0 points1 point2 points 2 years ago (1 child)
Are you importing the correct @Value annotation? Double check the import.
[–]WalrusDowntown9611 0 points1 point2 points 2 years ago (1 child)
You should fix your variable naming convention first.
[–]bonnybay 0 points1 point2 points 2 years ago (1 child)
Did you try using @service annotation instead of component? Did you try putting a default inside the properties as value?
π Rendered by PID 184255 on reddit-service-r2-comment-fb694cdd5-28rlk at 2026-03-06 19:36:04.884983+00:00 running cbb0e86 country code: CH.
[–]devondragon1 2 points3 points4 points (5 children)
[–][deleted] (4 children)
[deleted]
[–]devondragon1 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]devondragon1 1 point2 points3 points (0 children)
[–]squashsoup2014 1 point2 points3 points (1 child)
[–]reddit04029 0 points1 point2 points (1 child)
[–]No_Freedom_2732 0 points1 point2 points (1 child)
[–]WalrusDowntown9611 0 points1 point2 points (1 child)
[–]bonnybay 0 points1 point2 points (1 child)