私の非コントローラークラスは、
public class Authorization {
String licensePath ;
@Value("${licenseKeyNotFound}")
String licenseKeyNotFound;
public boolean checkIn(String licensepath) {
System.out.println("hello "+licenseKeyNotFound);
licensePath = licensepath;
return checkIn();
}
}
これが私のプロパティファイルです。
licenseKeyNotFound = License File Corrupted
私のlogin-servlet.xml
意志は、
<context:property-placeholder location="conf/LicenseSettings.properties"
order="2" ignore-unresolvable="true" />
私はそれをapplicationcontext.xmlに入れていませんでした。そうですか?