springboot一定要添加扫描
springboot一定要添加扫描,要不然有可能会找不到bean、service、controller之类的
@SpringBootApplication @ComponentScan("com.nbkj.fossx.engine.repository") @ComponentScan("com.nbkj.fossx.engine") public class Start { public static void main(String[] args) { SpringApplication.run(Start.class,args); } }
浙公网安备 33010602011771号