其他分享
首页 > 其他分享> > SpringBoot容器功能

SpringBoot容器功能

作者:互联网

1.组件添加

1.1 @Configuration

Full(proxyBeanMethods=true),代表配置类MyConfig中每个给容器中组件注册的方法,在外面可以随便调用,都会去容器中找组件

Lite(proxyBeanMethods=false),代表配置类在容器中不会保存代理对象,在外面无限次调用这些方法,每一次调用都会产生一个新的对象

 

 

标签:容器,功能,调用,false,SpringBoot,外面,组件,proxyBeanMethods
来源: https://www.cnblogs.com/GumpYan/p/14341504.html