类 ResponseExcelAutoConfiguration
java.lang.Object
com.sie.mbm.mom.framework.excel.ResponseExcelAutoConfiguration
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@AutoConfiguration
@Import(ExcelHandlerConfiguration.class)
@EnableConfigurationProperties(ExcelConfigProperties.class)
public class ResponseExcelAutoConfiguration
extends Object
implements org.springframework.context.ApplicationContextAware
配置初始化
-
字段概要
字段修饰符和类型字段说明private org.springframework.context.ApplicationContextprivate final org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapterprivate final ResponseExcelReturnValueHandler -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明dynamicNameAspect(NameProcessor nameProcessor) Excel名称解析处理切面SPEL 解析处理器voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Set the ApplicationContext that this object runs in.void追加 Excel 请求处理器 到 springmvc 中void追加 Excel返回值处理器 到 springmvc 中
-
字段详细资料
-
requestMappingHandlerAdapter
private final org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter requestMappingHandlerAdapter -
responseExcelReturnValueHandler
-
applicationContext
private org.springframework.context.ApplicationContext applicationContext
-
-
构造器详细资料
-
ResponseExcelAutoConfiguration
public ResponseExcelAutoConfiguration()
-
-
方法详细资料
-
nameProcessor
SPEL 解析处理器- 返回:
- NameProcessor excel名称解析器
-
dynamicNameAspect
@Bean @ConditionalOnMissingBean public DynamicNameAspect dynamicNameAspect(NameProcessor nameProcessor) Excel名称解析处理切面- 参数:
nameProcessor- SPEL 解析处理器- 返回:
- DynamicNameAspect
-
setReturnValueHandlers
@PostConstruct public void setReturnValueHandlers()追加 Excel返回值处理器 到 springmvc 中 -
setRequestExcelArgumentResolver
@PostConstruct public void setRequestExcelArgumentResolver()追加 Excel 请求处理器 到 springmvc 中 -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.Invoked after population of normal bean properties but before an init callback such as
InitializingBean.afterPropertiesSet()or a custom init-method. Invoked after,引用无效
ResourceLoaderAware#setResourceLoaderand引用无效
ApplicationEventPublisherAware#setApplicationEventPublisher, if applicable.引用无效
MessageSourceAware- 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 参数:
applicationContext- the ApplicationContext object to be used by this object- 另请参阅:
-