Spring中构造器、init-method、@PostConstruct、afterPropertiesSet孰先孰后,自动注入发生时间...

问题:今天想写一个通用点的方法,根据传入的参数的类型(clazz对象),判断使用哪一个mapper来插入mysql数据库。mysql 下面是个人写法:spring public interface BizNeeqCommonService<T> { void save(List<T> records, Class<T> clazz); } @Service public class Biz
相关文章
相关标签/搜索