Contents
see List작성일 2015. 02. 13.
<context:property-placeholder location="classpath:some.properties" ignore-unresolvable="true"/>@Value("${myProperty}")
private String myString;
@Value("${myProperty.two}")
private String myStringTwo;myProperty = whatever
myProperty.two = something else\
that consists of multiline string@Configuration
@PropertySource(value="classpath:some.properties")
public class SomeService {spring
| No | 작성일 | Title |
|---|---|---|
| 32 | 2014. 09. 26. | [ spring ] properties 파일 쉽게 사용하기(jsp,javs 소스) |
| 31 | 2014. 09. 25. | [ spring ] 스프링에서 aop(aspectj) 와 트랜젝션 순서 정하기 |