Spring简介

Spring是一个轻量级开源框架,以IOC(控制反转)、AOP(面向切面编程)为内核。

 Spring通过读取xml配置文件、根据id标识获得bean全限定名、通过反射创建UseDaolmpl类的bean对象、返回对象给UserServicelmpl

UserServicelmpl通过Spring客户端.getBean方法(ID标识)获得Spring容器创建的UseDaolmpl对象调用该对象的方法

 

 

posted on 2022-05-28 20:50  炙热的阳光  阅读(30)  评论(0编辑  收藏  举报