类初始化加载方法

mac2024-04-18  28

类初始化加载方法有两种方式 1、使用注解@PostConstruct修饰要加载的方法 2、类实现InitializingBean接口,并实现其afterPropertiesSet方法

最新回复(0)