创建工程
框架
本项目使用 tio-boot 框架,包含的依赖如下
<properties>
<!-- 项目属性 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<!-- 版本属性 -->
<graalvm.version>23.1.1</graalvm.version>
<lombok-version>1.18.30</lombok-version>
<fastjson2.version>2.0.52</fastjson2.version>
<hotswap-classloader.version>1.2.6</hotswap-classloader.version>
<java-model.version>1.1.4</java-model.version>
<tio-utils.version>3.7.3.v20241015-RELEASE</tio-utils.version>
<tio-boot.version>1.8.7</tio-boot.version>
<hotswap-classloader.version>1.2.6</hotswap-classloader.version>
<jfinal-aop.version>1.3.3</jfinal-aop.version>
<java-db.version>1.4.6</java-db.version>
<api-table.version>1.4.9</api-table.version>
<java.java-openai>1.1.3</java.java-openai>
<!-- 应用程序属性 -->
<final.name>web-hello</final.name>
<main.class>com.litongjava.max.blog.MaxBlogApp</main.class>
</properties>
<dependencies>
<!-- 日志框架 -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
<!-- FastJSON2 用于 JSON 解析 -->
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>${fastjson2.version}</version>
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>java-model</artifactId>
<version>${java-model.version}</version>
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>tio-utils</artifactId>
<version>${tio-utils.version}</version>
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>tio-boot</artifactId>
<version>${tio-boot.version}</version>
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>hotswap-classloader</artifactId>
<version>${hotswap-classloader.version}</version>
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>api-table</artifactId>
<version>${api-table.version}</version>
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>jfinal-aop</artifactId>
<version>${jfinal-aop.version}</version>
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>java-db</artifactId>
<version>${java-db.version}</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.6.11</version>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>4.3.1</version>
</dependency>
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>2.57</version> <!-- 注意:更高版本不支持 jdk 8 -->
</dependency>
<dependency>
<groupId>com.litongjava</groupId>
<artifactId>java-openai</artifactId>
<version>${java.java-openai}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.24</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>4.0.3</version>
</dependency>
<!-- Lombok 用于简化代码 -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok-version}</version>
<optional>true</optional>
<scope>provided</scope>
</dependency>
<!-- JUnit 用于测试 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-admin</artifactId>
<version>7.0.1</version>
</dependency>
<dependency>
<groupId>com.mailjet</groupId>
<artifactId>mailjet-client</artifactId>
<version>5.2.5</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>2.17.100</version> <!-- 请检查并使用最新版本 -->
</dependency>
<dependency>
<groupId>com.larksuite.oapi</groupId>
<artifactId>oapi-sdk</artifactId>
<version>2.2.10</version>
</dependency>