开发者

is It necessary to call ApplicationContext.start

开发者 https://www.devze.com 2023-02-17 12:48 出处:网络
I found without using start method, I can still create beans. What\'s the main purpose of ApplicationContext.s开发者_如何学JAVAtart()?The start() method is required by the Lifecycle interface, which i

I found without using start method, I can still create beans. What's the main purpose of ApplicationContext.s开发者_如何学JAVAtart()?


The start() method is required by the Lifecycle interface, which is primarily used to support asynchronous processing. You shouldn't need to call it on your main application context.

0

精彩评论

暂无评论...
验证码 换一张
取 消