天天看点

Spring - 解决 SpringUtil getBean NPE 问题

由来

使用

// 扫描cn.hutool.extra.spring包下所有类并注册之
@ComponentScan(basePackages={"cn.hutool.extra.spring"})