2025-11-27 17:01:07 +08:00
|
|
|
|
<?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">
|
|
|
|
|
|
<parent>
|
|
|
|
|
|
<artifactId>ldlz</artifactId>
|
|
|
|
|
|
<groupId>com.bns</groupId>
|
|
|
|
|
|
<version>3.8.7</version>
|
|
|
|
|
|
</parent>
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<artifactId>ldlz-admin</artifactId>
|
|
|
|
|
|
|
2025-11-28 11:23:55 +08:00
|
|
|
|
<description>web服务入口</description>
|
2025-11-27 17:01:07 +08:00
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
|
|
|
<version>2.1.0.RELEASE</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2025-12-03 14:55:06 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
|
|
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
|
|
|
</dependency>
|
2025-11-27 17:01:07 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- spring-boot-devtools -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
|
|
|
|
<optional>true</optional> <!-- 表示依赖不会传递 -->
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
2025-12-08 18:03:24 +08:00
|
|
|
|
<!-- 移除你原来的 Swagger3 依赖,替换为这个 -->
|
|
|
|
|
|
<!-- Springfox 2.8.0 核心依赖(兼容 Spring Boot 2.1.x) -->
|
2025-11-27 17:01:07 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>io.springfox</groupId>
|
2025-12-08 18:03:24 +08:00
|
|
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
|
|
|
|
<version>2.8.0</version>
|
|
|
|
|
|
<exclusions>
|
|
|
|
|
|
<!-- 1. 排除冲突的 spring-plugin(与 Spring Boot 2.1.1 自带版本冲突) -->
|
|
|
|
|
|
<exclusion>
|
|
|
|
|
|
<groupId>org.springframework.plugin</groupId>
|
|
|
|
|
|
<artifactId>spring-plugin-core</artifactId>
|
|
|
|
|
|
</exclusion>
|
|
|
|
|
|
</exclusions>
|
2025-11-27 17:01:07 +08:00
|
|
|
|
</dependency>
|
2025-12-08 18:03:24 +08:00
|
|
|
|
<!-- 手动引入 spring-plugin-core(Springfox 2.8.0 必需,与 Spring Boot 2.1.1 兼容) -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.plugin</groupId>
|
|
|
|
|
|
<artifactId>spring-plugin-core</artifactId>
|
|
|
|
|
|
<version>1.2.0.RELEASE</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Swagger UI 界面依赖(必须单独引入,2.8.0 没有 starter 整合) -->
|
2025-11-27 17:01:07 +08:00
|
|
|
|
<dependency>
|
2025-12-08 18:03:24 +08:00
|
|
|
|
<groupId>io.springfox</groupId>
|
|
|
|
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
|
|
|
|
<version>2.8.0</version>
|
2025-11-27 17:01:07 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Mysql驱动包 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 核心模块-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.bns</groupId>
|
|
|
|
|
|
<artifactId>ldlz-framework</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 定时任务-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.bns</groupId>
|
|
|
|
|
|
<artifactId>ldlz-quartz</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 代码生成-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.bns</groupId>
|
|
|
|
|
|
<artifactId>ldlz-generator</artifactId>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
|
|
<profile>
|
|
|
|
|
|
<id>druid</id>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<profile.active>druid</profile.active>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
<activation>
|
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
|
</activation>
|
|
|
|
|
|
</profile>
|
|
|
|
|
|
<profile>
|
|
|
|
|
|
<id>prod</id>
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<profile.active>prod</profile.active>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
</profile>
|
|
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
|
<version>2.5.15</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>repackage</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
|
|
|
<warName>${project.artifactId}</warName>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
|
|
|
|
|
|
|
|
|
<resources>
|
|
|
|
|
|
<resource>
|
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
|
<filtering>true</filtering>
|
|
|
|
|
|
</resource>
|
|
|
|
|
|
</resources>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|