報錯:Consider defining a bean of type 'xxxxxxxxxxxxx' in your configuration
1. 你應該在 ApplyApplication 啟動類里,掃描你的 Service包,多包掃描方法如下
@SpringBootApplication(scanBasePackages = {"xx.xxx.apply.controller", "xx.xxx.apply.service.*",
"xx.xxx.apply.security.*"})