lundi 6 avril 2015

How can I use the simple class name in Spring beans?

How can I use



<bean id="oneId" class="OneClass">
<property name="prop" ref="anotherBean">
</bean>


instead of



<bean id="oneId" class="com.bla.bla.bla.OneClass">
<property name="prop" ref="anotherBean">
</bean>


?


Is there a possibility to import a package?


There are a lot of classes from the same package and I'd like to make the XML file more readable.


Aucun commentaire:

Enregistrer un commentaire