Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the .springBeans file?

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.

like image 348
Gondy Avatar asked Feb 17 '15 22:02

Gondy


People also ask

What is bean XML file?

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.

What is Spring configuration file?

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.

What is Spring boot XML?

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.

Why we use XML in Spring?

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.


1 Answers

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.

like image 147
vtor Avatar answered Sep 28 '22 00:09

vtor