@AutoConfiguration(before=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class})
@EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties.class})
public class CommonsErrorMvcAutoConfiguration
extends Object
| 构造器和说明 |
|---|
CommonsErrorMvcAutoConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
CommonsErrorController |
commonsErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes,
org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers) |
public CommonsErrorMvcAutoConfiguration(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
@Bean
@ConditionalOnMissingBean(value={org.springframework.boot.web.servlet.error.ErrorController.class,CommonsErrorController.class},
search=CURRENT)
public CommonsErrorController commonsErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes,
org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers)
Copyright © 2022. All rights reserved.