spring的BeanPostProcessor,里面的2个方法多执行了一次
spring吧
全部回复
仅看楼主
level 2
而且位置也不对,都到了init下面了
2021年12月07日 10点12分 1
level 2
百度好像会压缩图片,好糊啊
2021年12月07日 10点12分 2
level 2
这个吧也好冷清啊~
2021年12月07日 10点12分 3
level 1
这个是因为beanpostprocess是每个bean都会执行,你没限制beanname,自然每个bean都会执行。你以为你的xml就定义了一个bean,其实还有其他的spring自己的,你自己debug看下一步,看下beandefine就知道了
2021年12月09日 10点12分 4
level 1
最起码的beandefintion就会被实例化一次
2022年01月18日 07点01分 5
beandefintion注册器
2022年01月18日 07点01分
1