記一次springboot 管理bean的錯誤

Q:spring   在其餘類中經過註解的方式注入service,測試的時候發現注入的爲nullspringboot  public class test{測試         @Autowired        private utilService service; //爲nullspa        private void util(){get           service.get(
相關文章
相關標籤/搜索