eclipse - Spring STS - unable to resolve properties -


this question not related spring, sts tool suite or spring eclipse ide. given following declaration of class

@configuration() @import({ websharedconfig.class, springsecurityconfig.class }) @componentscan({ "com.finovera.web", "com.finovera.platformservices","com.finovera.authentication" }) @propertysources(value = { @propertysource({ "${finovera_properties}" }), @propertysource(value = { "${static_override_properties}", }, ignoreresourcenotfound = true) }) @scope("singleton") @enabletransactionmanagement public class cabinetconfig extends webmvcconfigurationsupport { } 

i seeing following exception in sts plugin (org.springframework.ide.eclipse.beans.core)

org.springframework.beans.factory.beandefinitionstoreexception: failed parse configuration class [com.finovera.web.config.cabinetconfig]; nested exception java.lang.illegalargumentexception: not resolve placeholder 'finovera_properties' in string value "${finovera_properties}" @ org.springframework.context.annotation.configurationclassparser.parse(configurationclassparser.java:181) @ org.springframework.context.annotation.configurationclasspostprocessor.processconfigbeandefinitions(configurationclasspostprocessor.java:321) 

error simple properties name passed jvm when application starts. application run time code works fine, sts not. lot of functionality missing main configuration scan fails. commenting out property sources annotation, works fine.

how pass property value sts or convince ignore propertysources annotation?

i think limitation in current implementation. please file enhancement request against: https://issuetracker.springsource.com/browse/sts , can try fix next release of sts , spring ide.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -