blob: 417fa6d0f926a0f5c5d6fe50df71bd09182ed304 [file] [log] [blame]
22301115cf6dba22025-03-25 19:06:21 +08001
2package com.example.myproject;
3
4import org.mybatis.spring.annotation.MapperScan;
5import org.springframework.boot.SpringApplication;
6import org.springframework.boot.autoconfigure.SpringBootApplication;
YelinCui09ee07c2025-06-07 05:09:55 +08007import org.springframework.scheduling.annotation.EnableScheduling;
22301115cf6dba22025-03-25 19:06:21 +08008
9@SpringBootApplication
YelinCui09ee07c2025-06-07 05:09:55 +080010@EnableScheduling
11
22301115cf6dba22025-03-25 19:06:21 +080012@MapperScan("com.example.myproject.mapper") // 扫描 Mapper 接口
13public class MyProjectApplication {
14 public static void main(String[] args) {
15 SpringApplication.run(MyProjectApplication.class, args);
16 }
17}