Could not resolve placeholder 'redis.pool.maxTotal' in string value "${redis.pool.maxTotal}"

oppoppoppo發表於2017-02-15

在配置檔案中,路徑沒有錯,也有對應的keyvalue但是會報錯

<context:property-placeholder ignore-unresolvable="true" location="classpath:resource/application.properties" />

ignore-unresolvable="true" 
必須加上,每個配置檔案都不能漏

相關文章