类 BackgroundPreinitializer
- java.lang.Object
- org.springframework.boot.autoconfigure.BackgroundPreinitializer
- 所有已实现的接口:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>
@Order(-2147483627) public class BackgroundPreinitializer extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>
ApplicationListener
to trigger early initialization in a background thread of time consuming tasks.- 从以下版本开始:
- 1.3.0
构造器详细资料
BackgroundPreinitializer
public BackgroundPreinitializer()
方法详细资料
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.SpringApplicationEvent event)
- 指定者:
onApplicationEvent
在接口中org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>