G
G
gvsmirnov2012-01-21 03:20:22
IntelliJ IDEA
gvsmirnov, 2012-01-21 03:20:22

How to teach IDEA to use spring Resources?

There is a spring config:src/main/resources/some-spring-config.xml

<!-- ... -->
<bean id="propertyConfigurer"
      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreResourceNotFound" value="true"/>
    <property name="locations">
        <list>
            <value>some.properties</value>
            <!-- ... -->
        </list>
    </property>
</bean>

<bean id="someId" class="some.Class">
    <property name="someProperty" value="${some.property}"/>
</bean>
<!-- ... -->
And the properties file:src/main/resources/some.properties
some.property=some-value
The spring plugin for the idea cannot find the file some.properties(highlights in red), although I am absolutely and absolutely sure that it can do this (I have seen it several times in other projects). And there, the resources also did not have prefixes (file:, classpath: and others).

Tell me, please, how can I find happiness? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question