Creating a Spring Configuration File
See Also
The IDE provides support for managing Spring XML configuration files. You can use
the New Spring XML Configuration File wizard to create a configuration file.
To create a new Spring configuration file:
- Right-click on a project node in the Projects window and choose New > Other.
- This step depends on the type of your project. For a web project, select the Spring
category under Categories. For a Java SE or EJB project select the Other category.
Then under File Types, select Spring XML Configuration File. Click Next.
- In the Name and Location panel, specify a name and location for the file.
To specify a location, you can type in a path relative to your project in the
Folder text field. Otherwise, click Browse to navigate to a specific location.
If you leave the text field blank, the file will be created in the top-most
directory.
- If you have already added configuration file groups to your project, you can
optionally add the new configuration file to any of those groups under Add File to
Configuration File Group(s).
- Add namespaces to the configuration file. The namespaces displayed are the
standard set provided by the Spring Framework library. Click Finish.
The IDE generates the new configuration file and opens it in the Source Editor.
After the file is generated based on your settings, you can manage it
and other configuration files by accessing the Spring Framework category in the Project
Properties window (Choose Properties from a project's right-click menu).
- See Also
- About Spring Framework Support
- Adding Spring Support to a Project
- Organizing Spring Configuration Files
Legal Notices