1 Star 0 Fork 28

Ryan 钟/wow-note-spring

forked from Evan/wow-note-spring 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 13.25 KB
一键复制 编辑 原始数据 按行查看 历史
Evan 提交于 2024-02-09 15:25 . 优化网关与Docker部署
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion><!-- POM模型版本 -->
<!--顶级父类继承:SpringBoot 用以统一管理版本-->
<!--
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.2</version>
</parent>
-->
<!--父工程配置-->
<groupId>com.note</groupId>
<artifactId>wow-note</artifactId>
<version>Final</version><!-- pom版本号/项目总版本号, 每个子项目引入的版本号必须一致。 最外层的pom.xml版本号保持不变,始终为Final版本。-->
<packaging>pom</packaging><!-- 项目的最终打包类型/发布形式, 可选[jar, war, pom, maven-plugin]等 -->
<!--项目简介-->
<name>wow-note</name>
<description>新一代个人云笔记</description>
<url>https://wownote.com</url>
<!--配置属性声明-->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version> <!--java版本-->
<!--SpringCloud-->
<spring-cloud.version>2022.0.0</spring-cloud.version>
<!--SpringCloudAlibaba-->
<spring-cloud-alibaba.version>2022.0.0.0-RC2</spring-cloud-alibaba.version>
<!--SpringBoot-->
<spring-boot.version>3.0.2</spring-boot.version>
<!--SpringBootStarter-->
<spring-boot-starter.version>3.1.4</spring-boot-starter.version>
<!--Lombok 构造器-->
<lombok.version>1.18.26</lombok.version>
<!--MySql-->
<mysql.version>8.0.13</mysql.version>
<!--MyBatis-Plus-->
<mybatis-plus.version>3.5.3.1</mybatis-plus.version>
<!--Redis-->
<redis.version>3.1.4</redis.version>
<!--MongoDB-->
<mongodb.version>3.0.2</mongodb.version>
<!--log4j-->
<log4j.vsrsion>1.2.17</log4j.vsrsion>
<!--数据库连接池-->
<druid-spring-boot-starter.version>1.2.16</druid-spring-boot-starter.version>
<!--JPA-->
<spring-boot-jpa.version>3.1.2</spring-boot-jpa.version>
</properties>
<!--子项目声明即使用-->
<dependencyManagement>
<dependencies>
<!--SpringBoot-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--SpringCloud-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--SpringCloudAlibaba-->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${spring-cloud-alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--Spring的核心功能、自动配置以及嵌入式Web服务器-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!--spring-boot-starter-web内嵌tomcat 于接受和处理用户请求-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!--单元测试-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
</dependency>
<!--SpringBoot数据校验包-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<version>3.2.0</version>
</dependency>
<!--导入配置文件处理器,配置文件进行绑定就会有提示-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring-boot.version}</version>
<optional>true</optional>
</dependency>
<!--druid数据监控 数据库连接池-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid-spring-boot-starter.version}</version>
</dependency>
<!--导入JDBC的场景启动器-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
<version>${spring-boot-starter.version}</version>
</dependency>
<!--MySql数据库驱动-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<!-- Redis依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>${redis.version}</version>
</dependency>
<!--Redis客户端-->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>5.0.0-alpha2</version>
</dependency>
<!--Redis分布式锁-->
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
<version>3.23.1</version>
</dependency>
<!-- MongoDB依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
<version>${mongodb.version}</version>
</dependency>
<!-- mybatis Plus 插件 核心库-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<!--自动配置及springBoot集成-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<!--扩展模块-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-extension</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<!--代码生成器-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<!--JPA DB工具-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>${spring-boot-jpa.version}</version>
</dependency>
<!--AES/ECB/PKCS7Padding加密包-->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15to18</artifactId>
<version>1.68</version>
</dependency>
<!--引入jwt-->
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.10.3</version>
</dependency>
<!-- JSON工具 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.62</version>
</dependency>
<!--文档工具-->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
<version>4.4.0</version>
</dependency>
<!--Feign-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>4.0.0</version>
</dependency>
<!--配置中心-->
<dependency>
<groupId>com.note.config</groupId>
<artifactId>note-config</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<!--所有子项目公用-->
<dependencies>
<!--Lombok-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!--hutool工具-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.18</version>
</dependency>
<!--日志工具-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<!--数据校验包-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
</dependencies>
<!--子模块-->
<modules>
<module>note-user</module><!--用户服务-->
<module>note-notes</module><!--笔记服务-->
<module>note-tag</module><!--标签服务-->
<module>note-share</module><!--分享服务-->
<module>note-comment</module><!--评论服务-->
<module>note-gateway</module><!--网关服务-->
<module>note-config</module><!--配置类-->
</modules>
<build>
<!--yml配置中的@@找到pom文件中的配置-->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<!-- 配置项目的插件列表,用于自定义项目构建过程 -->
<plugins>
<plugin>
<!-- 插件的坐标信息 -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<!-- 插件的配置信息 -->
<configuration>
<!-- 配置插件的参数 -->
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<!-- 可以声明其他插件 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.4.2</version>
</plugin>
</plugins>
</build>
<profiles>
<!--开发环境-->
<profile>
<id>prod</id>
<activation>
<!-- 默认环境 -->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- 环境标识,需要与配置文件的名称相对应 -->
<profiles.active>prod</profiles.active>
<!--nacos配置ID-->
<nacos.namespace>7e784af9-4c7a-4575-b0d5-e2fb23c1ae46</nacos.namespace>
<nacos.server>120.53.87.9:8848</nacos.server>
</properties>
</profile>
<!--生产环境-->
<!-- <profile>
<id>dev</id>
<properties>
<profiles.active>dev</profiles.active>
<nacos.namespace>b8a3fda3-e6d4-437b-9cc5-d48c57f8d17c</nacos.namespace>
<nacos.server>120.53.87.9:8848</nacos.server>
</properties>
</profile>-->
<!--测试环境(/)-->
<!--<profile>
<id>test</id>
<properties>
<profiles.active>test</profiles.active>
<nacos.namespace>fdee6c72-2f83-412f-a108-a2cef5a952c6</nacos.namespace>
<nacos.server>localhost:10010</nacos.server>
</properties>
</profile>-->
</profiles>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/Ryan-Zhong/wow-note-spring.git
git@gitee.com:Ryan-Zhong/wow-note-spring.git
Ryan-Zhong
wow-note-spring
wow-note-spring
master

搜索帮助