@SpringBootApplication // 启动类 @EntityScan(basePackages = "cn.mallss.beans") // 用于扫描JPA实体类 @Entity @ComponentScan(basePackages = "cn.mallss.api") // 用于扫描@Controller @Service @Component @Repository @EnableJpaRepositories(basePackages = "cn.mallss.api") // 用于扫描Dao @Repository @EnableScheduling // 开启定时器 public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
  • 2021-07-13
  • 2022-12-23
猜你喜欢
  • 2021-10-25
  • 2022-12-23
  • 2021-10-06
  • 2021-07-16
  • 2021-06-27
  • 2021-06-19
  • 2021-07-06
相关资源
相似解决方案