什么是Spring中的JavaConfig?

weixin_38060280 weixin_38060280 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我只是试着理解注释@Bean的含义和用法,我遇到了一个叫做JavaConfig in this文档的单词(2.2.1.chapter).背景如下: To declare a bean, simply annotate a method with the @Bean annotation. When JavaConfig encounters such a method, it will execute that method and register(…) 我不明白什么是JavaConfig是Spring …它究竟起作用了什么?什么时候运行?为什么要跑? 我也看到了this documentation,但没有让我更接近理解它.
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部