spring常量值注入

<context:property-placeholder location="classpath:resources/*.properties" />
@Value("${PICTURE_URL}")
private String PICTURE_URL;

properties文件内

PICTURE_URL=http://localhost:8080/upload/

posted on 2016-05-01 12:43  颓废的悠然  阅读(1077)  评论(0编辑  收藏  举报

导航