Spring Notes




Bean id vs name:

>Only 1 id, but Many names

Special characters like #, @, $, *, /, and more are not allowed in the id attribute.  If you add one of these special characters to the id, you get an XmlBeanDefinitionStoreException thrown when the configuration is read by the container
Ex: <bean id="foo" name = "myFoo,kingBean,notBar" class="com.intertech.Foo"/>

>Names Still Must Uniquely Identify

when the id of a bean matches the name of another bean, an BeanDefinitionParsingException
Autowiring:


Comments

Popular posts from this blog

Spring Boot + Maven + RestFul + JPA + Sqlite

View & Materialized View

JDBC with Sqlite