I have created a small Spring project recently and this file appeared in project root folder:
.springBeans
<?xml version="1.0" encoding="UTF-8"?>
<beansProjectDescription>
<version>1</version>
<pluginVersion><![CDATA[3.6.3.201411271034-RELEASE]]></pluginVersion>
<configSuffixes>
<configSuffix><![CDATA[xml]]></configSuffix>
</configSuffixes>
<enableImports><![CDATA[false]]></enableImports>
<configs>
<config>src/test/resources/eu/gondy/myproject/test-beans.xml</config>
</configs>
<autoconfigs>
<config>java:eu.gondy.myproject.rest.RestApiController</config>
</autoconfigs>
<configSets>
</configSets>
</beansProjectDescription>
What is this file and it's purpose?
Technologies I use in this project: Spring 4.1.4, Spring Boot 1.2.1, Gradle 2.3, Eclipse Luna.
The beans. xml file is the bean archive descriptor for CDI applications. It can be used for any CDI compliant container, such as Weld which is included in WildFly application server.
A Spring configuration file is an XML file that contains the classes information. It describes how those classes are configured as well as introduced to each other.
Before Spring 3.0, XML was the only way to define and configure beans. Spring 3.0 introduced JavaConfig, allowing us to configure beans using Java classes. However, XML configuration files are still used today. In this tutorial, we'll discuss how to integrate XML configurations into Spring Boot.
There are advantages to using XML (or some other similar text-based approach though). In particular, you can change your application's wiring without rebuilding anything. If you don't want that, you can certainly do it all by hand or use something like Guice.
If you open Spring Explorer
tab in Eclipse (you have to select your project afterwards) there you should see Config Files
tab.
Here you can add your configuration files for example, and everything added in this list which you see will be stored in .springBeans
file, which is single configuration point for Spring.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With