From c83d86ad1a054b4d3a4fbd6ac2e528e5159a2c59 Mon Sep 17 00:00:00 2001 From: KilLze Date: Wed, 7 Jan 2026 22:59:46 +0800 Subject: [PATCH] =?UTF-8?q?Ciallo=EF=BD=9E(=E2=88=A0=C2=B7=CF=89<=20)?= =?UTF-8?q?=E2=8C=92=E2=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bao/dating/DatingApplication.java | 23 ++++++++++++++++++- src/main/resources/ciallo.txt | 9 ++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/ciallo.txt diff --git a/src/main/java/com/bao/dating/DatingApplication.java b/src/main/java/com/bao/dating/DatingApplication.java index 6295922..c092e78 100644 --- a/src/main/java/com/bao/dating/DatingApplication.java +++ b/src/main/java/com/bao/dating/DatingApplication.java @@ -4,11 +4,32 @@ import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; + @MapperScan("com.bao.dating.mapper") @SpringBootApplication public class DatingApplication { public static void main(String[] args) { SpringApplication.run(DatingApplication.class, args); + // 读取并打印 ciallo.txt 文件内容 + printCialloFile(); } -} + /** + * 读取并打印 ciallo.txt 文件内容 + */ + private static void printCialloFile() { + try (InputStream inputStream = DatingApplication.class.getClassLoader().getResourceAsStream("ciallo.txt"); + BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { + String line; + while ((line = reader.readLine()) != null) { + System.out.println(line); + } + } catch (IOException e) { + System.err.println("读取 ciallo.txt 文件时发生错误: " + e.getMessage()); + } + } +} \ No newline at end of file diff --git a/src/main/resources/ciallo.txt b/src/main/resources/ciallo.txt new file mode 100644 index 0000000..76ee823 --- /dev/null +++ b/src/main/resources/ciallo.txt @@ -0,0 +1,9 @@ + + ▄▄▄▄ ██ ▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ + ██▀▀▀▀█ ▀▀ ▀▀██ ▀▀██ ██ ▄▄ ██ + ██▀ ████ ▄█████▄ ██ ██ ▄████▄ ▄▄▄ ▄█▀ ▄█▀ ██ █▄ ▄▄▄█ ▀█▄ ▄▄▄▄ + ██ ██ ▀ ▄▄▄██ ██ ██ ██▀ ▀██ ▀ ▀▀▄▄ ▄ ██ ▄█▀ ██ ██ ██ ▄▄█▀▀▀ ██ █▀▀ ▀█▄ █▄ + ██▄ ██ ▄██▀▀▀██ ██ ██ ██ ██ ▀▀▀ ██ ▄█▄▄▄▄▄ ▀▀ ██ ██ ██ ▀▀█▄▄▄ ██ █▀ █ ▀▀████▀ + ██▄▄▄▄█ ▄▄▄██▄▄▄ ██▄▄▄███ ██▄▄▄ ██▄▄▄ ▀██▄▄██▀ ▀█▄ ▀▀▀▀▀▀▀▀ ██▄██▄██ ▀▀▀█ ▄█▀ █▀▀█ + ▀▀▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀ ▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ██ ▀▀▀ ▀▀▀ ██ + ▀▀ ▀▀