@Configuration
@ConditionalOnWebApplication
@ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class})
public class DreamErrorMvcAutoConfiguration
extends java.lang.Object
| 构造器和说明 |
|---|
DreamErrorMvcAutoConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration messageSourceAutoConfiguration) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.boot.autoconfigure.web.BasicErrorController |
basicErrorController(org.springframework.boot.autoconfigure.web.ErrorAttributes errorAttributes) |
org.springframework.boot.autoconfigure.web.DefaultErrorAttributes |
errorAttributes(ExceptionTranslator exceptionTranslator) |
ExceptionTranslator |
exceptionTranslator() |
org.springframework.context.MessageSource |
getMessageSource(org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration messageSourceAutoConfiguration) |
public DreamErrorMvcAutoConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration messageSourceAutoConfiguration)
@Bean @ConditionalOnMissingBean(value=ExceptionTranslator.class, search=CURRENT) public ExceptionTranslator exceptionTranslator()
@Bean
@ConditionalOnMissingBean(value=org.springframework.boot.autoconfigure.web.ErrorAttributes.class,
search=CURRENT)
public org.springframework.boot.autoconfigure.web.DefaultErrorAttributes errorAttributes(ExceptionTranslator exceptionTranslator)
@Bean
@ConditionalOnMissingBean(value=org.springframework.boot.autoconfigure.web.ErrorController.class,
search=CURRENT)
public org.springframework.boot.autoconfigure.web.BasicErrorController basicErrorController(org.springframework.boot.autoconfigure.web.ErrorAttributes errorAttributes)
public org.springframework.context.MessageSource getMessageSource(org.springframework.boot.autoconfigure.context.MessageSourceAutoConfiguration messageSourceAutoConfiguration)