You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
747 B

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. package com.example.demo;
  2. import org.mybatis.spring.annotation.MapperScan;
  3. import org.springframework.boot.SpringApplication;
  4. import org.springframework.boot.autoconfigure.SpringBootApplication;
  5. import org.springframework.scheduling.annotation.EnableScheduling;
  6. @SpringBootApplication
  7. @EnableScheduling // 启用调度功能
  8. @MapperScan(basePackages = "com.example.demo.mapper", sqlSessionTemplateRef = "mysql1SqlSessionTemplate")
  9. @MapperScan(basePackages = "com.example.demo.mapper.bean", sqlSessionTemplateRef = "mysql2SqlSessionTemplate")
  10. public class DemoApplication {
  11. public static void main(String[] args) {
  12. System.setProperty("https.protocols", "TLSv1");
  13. SpringApplication.run(DemoApplication.class, args);
  14. }
  15. }