<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/
转载于:https://www.cnblogs.com/tuifeideyouran/p/5450332.html