22301024 | 3394e0e | 2025-04-15 17:47:02 +0800 | [diff] [blame] | 1 | package edu.bjtu.groupone.backend; |
| 2 | |
Your Name | 695f6a6 | 2025-05-17 00:58:04 +0800 | [diff] [blame^] | 3 | import org.mybatis.spring.annotation.MapperScan; |
22301024 | 3394e0e | 2025-04-15 17:47:02 +0800 | [diff] [blame] | 4 | import org.springframework.boot.SpringApplication; |
| 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; |
Your Name | 695f6a6 | 2025-05-17 00:58:04 +0800 | [diff] [blame^] | 6 | import org.springframework.boot.web.servlet.ServletComponentScan; |
| 7 | import org.springframework.scheduling.annotation.EnableScheduling; |
22301024 | 3394e0e | 2025-04-15 17:47:02 +0800 | [diff] [blame] | 8 | |
Your Name | 695f6a6 | 2025-05-17 00:58:04 +0800 | [diff] [blame^] | 9 | @EnableScheduling |
| 10 | @ServletComponentScan |
22301024 | 3394e0e | 2025-04-15 17:47:02 +0800 | [diff] [blame] | 11 | @SpringBootApplication |
Your Name | 695f6a6 | 2025-05-17 00:58:04 +0800 | [diff] [blame^] | 12 | @MapperScan("edu.bjtu.groupone.backend.mapper") |
22301024 | 3394e0e | 2025-04-15 17:47:02 +0800 | [diff] [blame] | 13 | public class BackendApplication { |
| 14 | |
Your Name | 695f6a6 | 2025-05-17 00:58:04 +0800 | [diff] [blame^] | 15 | public static void main(String[] args) { |
| 16 | SpringApplication.run(BackendApplication.class, args); |
| 17 | } |
22301024 | 3394e0e | 2025-04-15 17:47:02 +0800 | [diff] [blame] | 18 | |
| 19 | } |