摘要:
没有启动容器就没有生成bean,就无法通过自动注入获取 我就是用一个main方法运行了一下,结果一直报空指针 阅读全文
posted @ 2022-11-08 16:05
影子BLH
阅读(40)
评论(0)
推荐(0)
摘要:
springboot一定要添加扫描,要不然有可能会找不到bean、service、controller之类的 @SpringBootApplication @ComponentScan("com.nbkj.fossx.engine.repository") @ComponentScan("com.n 阅读全文
posted @ 2022-11-08 15:28
影子BLH
阅读(190)
评论(0)
推荐(0)