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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -