Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esUtil' defined in file [D:\code\xxx\xxx\target\classes\com\xxx\elasticsearch\util\EsUtil.class]: Post-processing failed of bean type [class com.xxx.elasticsearch.util.EsUtil] failed; nested exception is java.lang.IllegalStateException: Lifecycle method annotation requires a no-arg method: private void com.xxx.elasticsearch.util.EsUtil.init(com.xxx.dtcontrol.utils.ControllerUtils)
@PostConstruct注解只能用在无参构造方法上
最新推荐文章于 2024-06-20 11:50:09 发布