public class ApplicationBuilder
extends org.springframework.boot.builder.SpringApplicationBuilder
| 限定符 | 构造器和说明 |
|---|---|
protected |
ApplicationBuilder(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 ApplicationBuilder createBuilder(Object... sources) throws Exception
sources - sourcesNoSuchFieldException - eIllegalAccessException - eExceptionpublic static ApplicationBuilder getInstance()
public org.springframework.core.env.Environment getEnvironment()
public Set<ApplicationEventClient> getApplicationEventClients()
public Set<ApplicationEventLoad> getApplicationEventLoads()
public Set<Class<? extends BaseInterceptor>> getInterceptorClass()
public Set<org.springframework.http.converter.HttpMessageConverter<?>> getHttpMessageConverters()
public ApplicationBuilder addHttpMessageConverter(org.springframework.http.converter.HttpMessageConverter<?> httpMessageConverter)
httpMessageConverter - converterpublic ApplicationBuilder addInterceptor(Class<? extends BaseInterceptor> cls)
cls - clspublic ApplicationBuilder addApplicationEventLoad(ApplicationEventLoad applicationEventLoad)
applicationEventLoad - 监听接口public ApplicationBuilder addApplicationEventClient(ApplicationEventClient applicationEventClient)
applicationEventClient - 监听接口回调public ApplicationBuilder addLoadPage(String packageName) throws NoSuchFieldException, IllegalAccessException
packageName - 包名NoSuchFieldException - eIllegalAccessException - epublic static boolean isRestart()
Copyright © 2017–2018. All rights reserved.