2021
08-22
08-22
springboot实现在工具类(util)中调用注入service层方法
一、新建BeanUtil类importlombok.extern.slf4j.Slf4j;importorg.springframework.beans.BeansException;importorg.springframework.beans.factory.DisposableBean;importorg.springframework.context.ApplicationContext;importorg.springframework.context.ApplicationContextAware;importjava.util.ArrayList;importjava.util.List;@Slf4jpublicclassBeanUtilimplementsApplicationContextAware,DisposableBean{...
继续阅读 >