What in the world are Spring beans?

前端 未结 12 1483
谎友^
谎友^ 2020-11-28 00:19

I am yet to find a high-level definition of Spring beans that I can understand. I see them referenced often in Grails documentation and books, but I think that understanding

12条回答
  •  无人及你
    2020-11-28 00:55

    • Spring beans are just object instances that are managed by the Spring IOC container.

    • Spring IOC container carry the Bag of Bean.Bean creation,maintain and deletion are the responsibilities of Spring Container.

    • We can put the bean in to Spring by Wiring and Auto Wiring.

    • Wiring mean we manually configure it into the XML file.

    • Auto Wiring mean we put the annotations in the Java file then Spring automatically scan the root-context where java configuration file, make it and put into the bag of Spring.

提交回复
热议问题