<context:property-placeholder location="classpath:resources/*.properties" />
@Value("${PICTURE_URL}")
private String PICTURE_URL;
properties檔案内
PICTURE_URL=http://localhost:8080/upload/
<context:property-placeholder location="classpath:resources/*.properties" />
@Value("${PICTURE_URL}")
private String PICTURE_URL;
properties檔案内
PICTURE_URL=http://localhost:8080/upload/