项目启动时为何代码不执行?

内容概览
我在项目中使用了@Component和ApplicationContextAware接口,但发现项目启动时setApplicationContext方法并没有执行。这个问题困扰了我很久,希望有人能帮我解答。#项目答疑#
梦醒
2024-07-09 16:07
评论7
@Component public class MyApplicationContext implements ApplicationContextAware { @Override public void setApplicationContext(ApplicationContext applicationContext) th...

芋道快速开发平台 Boot + Cloud

星球已运营 4 年零 211 天

累计超过  34000+  位成员加入

5小时前

最近更新

40000+

内容数

进入星球主页