dvas0004 / NerdNotes

A collection of notes: things I'd like to remember while reading technical articles, technical questions I couldn't answer, and so on.
12 stars 0 forks source link

Spring @Value annotated methods #123

Open dvas0004 opened 4 years ago

dvas0004 commented 4 years ago

Spring supports @Value methods on:


static String someVariable

@Value("{someVar}")
public void setSomeVariable(String someVar){
    someVariable = someVar;
}