企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
在one中实现ApplicationContextAware接口会出现如何的变化呢? ~~~ public class one implements ApplicationContextAware { @Override public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { System.out.println("setApplicationContext"); } public one(String one) { System.out.println(one); } } ~~~ 结果 ![](https://box.kancloud.cn/4f4a99a6a204c770c14c579e96f87dc4_442x156.png)