spring-framework / org.springframework.web.method / ControllerAdviceBean / <init>

<init>

ControllerAdviceBean(bean: Any)

Create a ControllerAdviceBean using the given bean instance.

Parameters

bean - the bean instance

ControllerAdviceBean(beanName: String, @Nullable beanFactory: BeanFactory)

Create a ControllerAdviceBean using the given bean name.

Parameters

beanName - the name of the bean

beanFactory - a BeanFactory that can be used later to resolve the bean