@Value: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=External= * https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/beans/factory/annotation/Value.html =Internal= * Spring Dependency Injec...") |
|||
Line 6: | Line 6: | ||
* [[Spring Dependency Injection and Inversion of Control Container Concepts#@Value|Spring Dependency Injection and Inversion of Control Container Concepts]] | * [[Spring Dependency Injection and Inversion of Control Container Concepts#@Value|Spring Dependency Injection and Inversion of Control Container Concepts]] | ||
=Overview= | |||
<syntaxhighlight lang='java'> | |||
@Value("${accountServiceURL ?:http://example.com/account/}") | |||
private String accountServiceURL; | |||
</syntaxhighlight> |
Revision as of 22:29, 8 November 2018
External
Internal
Overview
@Value("${accountServiceURL ?:http://example.com/account/}")
private String accountServiceURL;