public class SpringApplicationBuilder
extends org.springframework.boot.builder.SpringApplicationBuilder
| 限定符 | 构造器和说明 |
|---|---|
protected |
SpringApplicationBuilder(Object... sources) |
| 限定符和类型 | 方法和说明 |
|---|---|
SpringApplicationBuilder |
addApplicationEventClient(ApplicationEventClient applicationEventClient)
添加程序事件监听
|
SpringApplicationBuilder |
addApplicationEventLoad(ApplicationEventLoad applicationEventLoad)
添加容器启动监听
|
SpringApplicationBuilder |
addHttpMessageConverter(org.springframework.http.converter.HttpMessageConverter<?> httpMessageConverter)
添加响应转换器
|
SpringApplicationBuilder |
addInterceptor(Class<? extends BaseInterceptor> cls)
添加默认拦截器
|
SpringApplicationBuilder |
addLoadPage(String packageName)
给程序添加默认包
|
static SpringApplicationBuilder |
createBuilder(Object... sources)
创建启动对象
|
List<ApplicationEventClient> |
getApplicationEventClients() |
List<ApplicationEventLoad> |
getApplicationEventLoads() |
org.springframework.core.env.Environment |
getEnvironment() |
List<org.springframework.http.converter.HttpMessageConverter<?>> |
getHttpMessageConverters() |
static SpringApplicationBuilder |
getInstance() |
List<Class<? extends BaseInterceptor>> |
getInterceptorClass() |
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, webprotected SpringApplicationBuilder(Object... sources) throws NoSuchFieldException, IllegalAccessException
public static SpringApplicationBuilder createBuilder(Object... sources) throws NoSuchFieldException, IllegalAccessException
sources - sourcesNoSuchFieldException - eIllegalAccessException - epublic 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 - eCopyright © 2018 Pivotal Software, Inc.. All rights reserved.