public class SpringApplicationBuilder
extends org.springframework.boot.builder.SpringApplicationBuilder
| 限定符 | 构造器和说明 |
|---|---|
protected |
SpringApplicationBuilder(Object... sources) |
addCommandLineProperties, application, banner, bannerMode, beanNameGenerator, build, build, child, context, contextClass, createSpringApplication, environment, headless, initializers, listeners, logStartupInfo, main, parent, parent, profiles, properties, properties, properties, registerShutdownHook, resourceLoader, run, sibling, sibling, sources, sources, webpublic static SpringApplicationBuilder createBuilder(Object... sources) throws Exception
sources - sourcesNoSuchFieldException - eIllegalAccessException - eExceptionpublic static SpringApplicationBuilder getInstance()
public org.springframework.core.env.Environment getEnvironment()
public List<ApplicationEventClient> getApplicationEventClients()
public List<ApplicationEventLoad> getApplicationEventLoads()
public List<Class<? extends BaseInterceptor>> getInterceptorClass()
public List<org.springframework.http.converter.HttpMessageConverter<?>> getHttpMessageConverters()
public SpringApplicationBuilder addHttpMessageConverter(org.springframework.http.converter.HttpMessageConverter<?> httpMessageConverter)
httpMessageConverter - converterpublic SpringApplicationBuilder addInterceptor(Class<? extends BaseInterceptor> cls)
cls - clspublic SpringApplicationBuilder addApplicationEventLoad(ApplicationEventLoad applicationEventLoad)
applicationEventLoad - 监听接口public SpringApplicationBuilder addApplicationEventClient(ApplicationEventClient applicationEventClient)
applicationEventClient - 监听接口回调public SpringApplicationBuilder addLoadPage(String packageName) throws NoSuchFieldException, IllegalAccessException
packageName - 包名NoSuchFieldException - eIllegalAccessException - epublic static boolean isRestart()
Copyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.