Spring Beans is a Configuration File of your Beans and dependency in your Spring Project. there many Style of Spring Beans usage. but at least there 2 way :
then register your class to the spring bean
create another java main class
then this is how spring work ....
i put my xml configuration inside folder "configFile".
run this app and you will get this.
- XML Configuration File, this way is the first way that used this method is the first method used during the first Spring release.
- Class Configuration File. this is modern way. you can use java class file to save your spring bean configuration.
then register your class to the spring bean
create another java main class
then this is how spring work ....
i put my xml configuration inside folder "configFile".
run this app and you will get this.

Comments
Post a Comment