2

I use the following xml-configuration:

<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
    <property name="beanNames">
        <array value-type="java.lang.String">
            <value>someService</value>
        </array>
    </property>
    <property name="interceptorNames">
        <array value-type="java.lang.String">
            <value>managerSecurity</value>
            <value>teamSecurity</value>
        </array>
    </property>
</bean>

And it works. But Intellij Idea gives me an error: expected, got 'stringValue' I wonder what is the proper way to define an Arrays of string-values in Spring configuration to satisfy Intellij idea validation? enter image description here

1 Answer 1

2

It seems you might have configured some language injection for the tag body. To verify, please press Alt+Enter while cursor is positioned inside, if you get intention to "Edit ... Fragment" then this is the case. Please check manual Language Injection settings in File | Settings | Editor | Language Injections and/or try disabling 3rd party plugins which might be causing this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.