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.
48 lines
2.1 KiB
48 lines
2.1 KiB
package cn.iocoder.yudao.server;
|
|
|
|
import com.github.fppt.jedismock.RedisServer;
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* 项目的启动类
|
|
* <p>
|
|
* 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
* 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
* 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
*
|
|
* @author 芋道源码
|
|
*/
|
|
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${yudao.info.base-package}
|
|
@SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}.server", "${yudao.info.base-package}.module"})
|
|
@MapperScan("cn.iocoder.yudao.module.alert.dao.mapper")
|
|
public class YudaoServerApplication {
|
|
|
|
public static void main(String[] args) {
|
|
// 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
// 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
// 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
|
|
// 启动 Redis 服务-2025-04-22添加---以下
|
|
RedisServer redisServer = new RedisServer(6379);
|
|
try {
|
|
redisServer.start();
|
|
} catch (IOException e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
// 启动 Redis 服务-2025-04-22添加---以上
|
|
|
|
SpringApplication.run(YudaoServerApplication.class, args);
|
|
// new SpringApplicationBuilder(YudaoServerApplication.class)
|
|
// .applicationStartup(new BufferingApplicationStartup(20480))
|
|
// .run(args);
|
|
|
|
// 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
// 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
// 如果你碰到启动的问题,请认真阅读 https://doc.iocoder.cn/quick-start/ 文章
|
|
}
|
|
|
|
}
|
|
|