## 类的使用
org.springframework.beans.BeanInstantiationException

- 使用BeanInstantiationException的程序包
  程序包 | 说明
  --- | ---
  org.springframework.beans | This package contains interfaces and classes for manipulating Java beans.

- - ### org.springframework.beans中BeanInstantiationException的使用

    抛出BeanInstantiationException的org.springframework.beans中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static <T> T` | BeanUtils.`instantiate(Class<T> clazz)` 已过时。 as of Spring 5.0, following the deprecation of `Class.newInstance()` in JDK 9
    `static <T> T` | BeanUtils.`instantiateClass(Class<?> clazz, Class<T> assignableTo)` Instantiate a class using its no-arg constructor and return the new instance as the specified assignable type.
    `static <T> T` | BeanUtils.`instantiateClass(Class<T> clazz)` Instantiate a class using its 'primary' constructor (for Kotlin classes, potentially having default arguments declared) or its default constructor (for regular Java classes, expecting a standard no-arg setup).
    `static <T> T` | BeanUtils.`instantiateClass(Constructor<T> ctor, Object... args)` Convenience method to instantiate a class using the given constructor.