Commit f4657efc by “lxy”

优化依赖

1 parent eca66102
...@@ -13,13 +13,28 @@ ...@@ -13,13 +13,28 @@
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>nafmii-admin</name> <name>nafmii-admin</name>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<description>Demo project for Spring Boot</description> <description>中心端(后台管理系统)</description>
<properties> <properties>
<java.version>1.8</java.version> <java.version>1.8</java.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions><!-- 去掉springboot默认配置 -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency> </dependency>
...@@ -28,6 +43,14 @@ ...@@ -28,6 +43,14 @@
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!--<dependency>--> <!--<dependency>-->
<!--<groupId>org.springframework.boot</groupId>--> <!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-data-redis</artifactId>--> <!--<artifactId>spring-boot-starter-data-redis</artifactId>-->
...@@ -47,36 +70,16 @@ ...@@ -47,36 +70,16 @@
<!--<artifactId>pagehelper</artifactId>--> <!--<artifactId>pagehelper</artifactId>-->
<!--</dependency>--> <!--</dependency>-->
<!--feign --> <!--feign -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<!--<dependency>--> <!--<dependency>-->
<!--<groupId>org.projectlombok</groupId>--> <!--<groupId>org.projectlombok</groupId>-->
<!--<artifactId>lombok</artifactId>--> <!--<artifactId>lombok</artifactId>-->
<!--</dependency>--> <!--</dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.mybatis.generator</groupId> <groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId> <artifactId>mybatis-generator-core</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions><!-- 去掉springboot默认配置 -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- MyBatis--> <!-- MyBatis-->
<!--<dependency>--> <!--<dependency>-->
<!--<groupId>org.mybatis</groupId>--> <!--<groupId>org.mybatis</groupId>-->
...@@ -113,15 +116,6 @@ ...@@ -113,15 +116,6 @@
<groupId>de.codecentric</groupId> <groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId> <artifactId>spring-boot-admin-starter-server</artifactId>
</dependency> </dependency>
<!--&lt;!&ndash;Knife4j API文档生产工具&ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>com.github.xiaoymin</groupId>-->
<!--<artifactId>knife4j-micro-spring-boot-starter</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.github.xiaoymin</groupId>-->
<!--<artifactId>knife4j-spring-boot-starter</artifactId>-->
<!--</dependency>-->
<dependency> <dependency>
<groupId>org.nafmii</groupId> <groupId>org.nafmii</groupId>
<artifactId>nafmii-common</artifactId> <artifactId>nafmii-common</artifactId>
......
...@@ -13,13 +13,24 @@ ...@@ -13,13 +13,24 @@
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
<name>nafmii-app</name> <name>nafmii-app</name>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<description>Demo project for Spring Boot</description> <description>移动端应用服务</description>
<properties> <properties>
<java.version>1.8</java.version> <java.version>1.8</java.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions><!-- 去掉springboot默认配置 -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency> </dependency>
...@@ -42,10 +53,6 @@ ...@@ -42,10 +53,6 @@
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId> <artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency> </dependency>
<!--<dependency>-->
<!--<groupId>org.projectlombok</groupId>-->
<!--<artifactId>lombok</artifactId>-->
<!--</dependency>-->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
...@@ -58,16 +65,11 @@ ...@@ -58,16 +65,11 @@
<groupId>org.mybatis.generator</groupId> <groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId> <artifactId>mybatis-generator-core</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId> <!--<dependency>-->
<artifactId>spring-boot-starter-web</artifactId> <!--<groupId>org.projectlombok</groupId>-->
<exclusions><!-- 去掉springboot默认配置 --> <!--<artifactId>lombok</artifactId>-->
<exclusion> <!--</dependency>-->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- MyBatis--> <!-- MyBatis-->
<!--<dependency>--> <!--<dependency>-->
<!--<groupId>org.mybatis</groupId>--> <!--<groupId>org.mybatis</groupId>-->
...@@ -108,15 +110,6 @@ ...@@ -108,15 +110,6 @@
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
</dependency> </dependency>
<!--Knife4j API文档生产工具-->
<!--<dependency>-->
<!--<groupId>com.github.xiaoymin</groupId>-->
<!--<artifactId>knife4j-micro-spring-boot-starter</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.github.xiaoymin</groupId>-->
<!--<artifactId>knife4j-spring-boot-starter</artifactId>-->
<!--</dependency>-->
<dependency> <dependency>
<groupId>org.nafmii</groupId> <groupId>org.nafmii</groupId>
<artifactId>nafmii-common</artifactId> <artifactId>nafmii-common</artifactId>
......
package org.nafmii;
/**
* @author:zhoujh
* @Function:TODO
* @date 2021/4/23 8:58
* @ClassName:
* @version:
* @remark:
*/
public class test {
}
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<description>nafmii 2.0 父级工程</description> <description>nafmii 2.0 父级工程</description>
<!--nafmii-parent管理的模块-->
<modules> <modules>
<module>nafmii-admin</module> <module>nafmii-admin</module>
<module>nafmii-eureka</module> <module>nafmii-eureka</module>
...@@ -54,47 +55,48 @@ ...@@ -54,47 +55,48 @@
<mall-common.version>1.0-SNAPSHOT</mall-common.version> <mall-common.version>1.0-SNAPSHOT</mall-common.version>
<mall-mbg.version>1.0-SNAPSHOT</mall-mbg.version> <mall-mbg.version>1.0-SNAPSHOT</mall-mbg.version>
<ojdbc.version>10.2.0.4</ojdbc.version> <ojdbc.version>10.2.0.4</ojdbc.version>
<swagger.version>2.9.2</swagger.version>
</properties> </properties>
<!--公共依赖-->
<dependencies> <dependencies>
<!--<dependency>--> <!--springboot相关依赖-->
<!--&lt;!&ndash; 引入log4j2依赖 &ndash;&gt;-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-slf4j</artifactId>-->
<!---->
<!--</dependency>-->
<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>slf4j-api</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId> <artifactId>spring-boot-starter-aop</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.hutool</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>hutool-all</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency> </dependency>
<!--日志门面-->
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.slf4j</groupId>
<artifactId>lombok</artifactId> <artifactId>slf4j-api</artifactId>
</dependency> </dependency>
<!--工具类-->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>cn.hutool</groupId>
<artifactId>spring-boot-configuration-processor</artifactId> <artifactId>hutool-all</artifactId>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.projectlombok</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>lombok</artifactId>
<scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<!--严格控制的依赖版本-->
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
...@@ -134,17 +136,6 @@ ...@@ -134,17 +136,6 @@
<artifactId>hutool-all</artifactId> <artifactId>hutool-all</artifactId>
<version>${hutool.version}</version> <version>${hutool.version}</version>
</dependency> </dependency>
<!--Knife4j API文档生产工具-->
<!--<dependency>-->
<!--<groupId>com.github.xiaoymin</groupId>-->
<!--<artifactId>knife4j-micro-spring-boot-starter</artifactId>-->
<!--<version>${knife4j.version}</version>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.github.xiaoymin</groupId>-->
<!--<artifactId>knife4j-spring-boot-starter</artifactId>-->
<!--<version>${knife4j.version}</version>-->
<!--</dependency>-->
<!-- MyBatis 生成器 --> <!-- MyBatis 生成器 -->
<dependency> <dependency>
<groupId>org.mybatis.generator</groupId> <groupId>org.mybatis.generator</groupId>
...@@ -181,7 +172,6 @@ ...@@ -181,7 +172,6 @@
<artifactId>nimbus-jose-jwt</artifactId> <artifactId>nimbus-jose-jwt</artifactId>
<version>${nimbus-jose-jwt.version}</version> <version>${nimbus-jose-jwt.version}</version>
</dependency> </dependency>
<!--集成logstash--> <!--集成logstash-->
<dependency> <dependency>
<groupId>net.logstash.logback</groupId> <groupId>net.logstash.logback</groupId>
...@@ -204,24 +194,14 @@ ...@@ -204,24 +194,14 @@
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId> <artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version> <version>${swagger.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>io.springfox</groupId> <groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId> <artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version> <version>${swagger.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<build>
<plugins>
<!--<plugin>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-maven-plugin</artifactId>-->
<!--</plugin>-->
</plugins>
</build>
</project> </project>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!