Working with Spring context files
Hello.
I've just installed Intellyj Idea IDE and trying to create a very simple context.xml for Spring, created new Spring project.
IDE downloaded Spring lib files, created XML file in src folder of project.
The first impressions were very good.
When I typed '<' IDE suggested
<?xml version="1.0" encoding="utf-8" ?>
nice!
Next, when I typed '<beans xmlns="' IDE suggested schemas from http://www.springframework.org - very well.
But why when I type 'xsi:schemaLocation="http://www.springframework.org/schema/beans ' and pressed CTRL+Space, IDE suggesting me only files from src folder, but not the whole path 'https://www.springframework.org/schema/beans/spring-beans.xsd' (from C:\Projects\SpringNonMaven\lib\spring-beans-5.2.3.RELEASE.jar!\META-INF\spring.schemas)?
Please sign in to leave a comment.
Can you clarify how you created your Spring demo project? We recommend using the Spring Initializr template in the project wizard because this way we will be able to select all necessary dependencies for Spring.
It is also better to create the file "context.xml " through the context menu. In this case a template configuration will be added along with the file, which can be used in most cases.
---
But why when I type 'xsi:schemaLocation="http://www.springframework.org/schema/beans ' and pressed CTRL+Space, IDE suggesting me only files from src folder, but not the whole path 'https://www.springframework.org/schema/beans/spring-beans.xsd' (from C:\Projects\SpringNonMaven\lib\spring-beans-5.2.3.RELEASE.jar!\META-INF\spring.schemas)?
It looks like related to this issue: IDEA-25454. You can vote up the issue in order to speed up the implementation/discussion process.