入口类要放在首个package 这样它能扫到所有的包

@SpringBootApplication
@EnableScheduling
public class App {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }
}

@EnableScheduling 用户开启线程

相关文章:

  • 2021-12-12
  • 2022-02-24
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-07-14
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-05-17
  • 2021-11-13
  • 2021-12-23
  • 2022-01-05
  • 2022-01-14
相关资源
相似解决方案