blob: 8a5fdfed00e1f8b437a90c8812e191f0b9cd56a9 [file] [log] [blame]
Jiarenxiang25a45b72025-03-13 16:09:13 +08001package com.ruoyi;
2
崔向南03d21b92025-06-05 17:42:23 +08003import org.mybatis.spring.annotation.MapperScan;
Jiarenxiang25a45b72025-03-13 16:09:13 +08004import org.springframework.boot.SpringApplication;
5import org.springframework.boot.autoconfigure.SpringBootApplication;
6import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
崔向南03d21b92025-06-05 17:42:23 +08007import org.springframework.context.annotation.ComponentScan;
Jiarenxiang25a45b72025-03-13 16:09:13 +08008
9/**
10 * 启动程序
11 *
12 * @author ruoyi
13 */
崔向南03d21b92025-06-05 17:42:23 +080014@ComponentScan(basePackages = {
15 "com.ruoyi",
16 "bounty" // 新增您的包路径
17})
18// 关键添加:扩大MyBatis接口扫描范围
19@MapperScan(basePackages = {
20 "com.ruoyi.**.mapper",
21 "bounty.mapper" // 如果bounty下有Mapper接口
22})
23
Jiarenxiang25a45b72025-03-13 16:09:13 +080024@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
Yumaooe96c2542025-05-13 17:11:01 +080025public class RuoYiApplication {
26 public static void main(String[] args) {
Jiarenxiang25a45b72025-03-13 16:09:13 +080027 // System.setProperty("spring.devtools.restart.enabled", "false");
28 SpringApplication.run(RuoYiApplication.class, args);
29 // ANSI escape code for blue text
30 String blue = "\u001B[34m";
31 // ANSI escape code to reset text color
32 String reset = "\u001B[0m";
33
Yumaoo877388f2025-04-10 23:34:09 +080034 System.out.println(blue + " ----贾仁翔 喵喵喵" + reset);
Jiarenxiang25a45b72025-03-13 16:09:13 +080035 }
36}