I have a snippet that looks like this
@Component
public class Inspiration {
private String lyric =
"I can keep the door cracked open, to let light through";
public Inspiration(
@Value("For all my running, I can understand") String lyric) {
this.lyric = lyric;
}
public String getLyric() {
return lyric;
}
public void setLyric(String lyric) {
this.lyric = lyric;
}
}
What does @Value("For all my running, I can understand")
mean here, does it represent the default value for parameter lyric?
我希望你能在这里得到你的解释: https ://books.google.co.in/books?id=N-U5DwAAQBAJ&pg=PA64&lpg=PA64&dq=@Value(%22For+all+my+running,+I+can+ understand%22)&source=bl&ots=lOIHkwsF8l&sig=ACfU3U2CAxlxIuYSh3A7dvCaQZiVmLauGw&hl=en&sa=X&ved=2ahUKEwjVlun_5tH4AhUeaGwGHcvPB8UQ6AF6BAgDEAM#v=onepage&q=%40Value(%22For%20all%20my%20running%2C%20I%20can%20understand%22)&f=false
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.