ICode9

精准搜索请尝试: 精确搜索
  • 工具类中采用静态注入的方式来注入bean2022-06-10 16:33:23

    方式一: @Component public class CommonUtils { private static SwitchConfig switchConfig; @Autowired public void setSwitchConfig(SwitchConfig switchConfig) { CommonUtils.switchConfig = switchConfig; } /*** * *工

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有