1 Star 38 Fork 16

SunStrider/Netty_Spring_MVC_Sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pom.xml 5.93 KB
一键复制 编辑 原始数据 按行查看 历史
SunStrider 提交于 2020-03-08 11:45 . 版本升级
<?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>
<groupId>com.ceiec</groupId>
<artifactId>Netty_Spring_MVC_Sample</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Netty_Spring_MVC_Sample</name>
<description>spring-boot搭建的web项目,但是使用netty取代了默认的tomcat</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.10.RELEASE</version>
</parent>
<properties>
<org.springframework-version>4.3.7.RELEASE</org.springframework-version>
<geronimo.specs-version>1.0</geronimo.specs-version>
<logback-version>1.1.2</logback-version>
<slf4j-version>1.7.7</slf4j-version>
<gson-version>2.2.4</gson-version>
<servlet-api.verison>3.1.0</servlet-api.verison>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.20</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet-api.verison}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.8.2</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.62</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Netty -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-transport</artifactId>
<!--<version>${netty-version}</version>-->
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-handler</artifactId>
<!--<version>${netty-version}</version>-->
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http</artifactId>
<!--<version>${netty-version}</version>-->
</dependency>
<!-- Servlet API and mock req/res -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<version>${geronimo.specs-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<!--<version>4.3.7.RELEASE</version>-->
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<!--<version>4.3.7.RELEASE</version>-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.3.RELEASE</version>
</plugin>
</plugins>
<!--配置Maven 对resourceh文件 过滤 -->
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<!--<include>**/*.properties</include>-->
<!--<include>**/*.xml</include>-->
<include>**/*</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<!-- // 配置Maven 对resource文件 过滤 -->
</build>
<profiles>
<profile>
<id>88</id>
<properties>
<activatedProperties>192.168.19.88</activatedProperties>
</properties>
</profile>
<profile>
<id>94</id>
<properties>
<activatedProperties>192.168.19.94</activatedProperties>
</properties>
</profile>
</profiles>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dumpcao/Netty_Spring_MVC_Sample.git
git@gitee.com:dumpcao/Netty_Spring_MVC_Sample.git
dumpcao
Netty_Spring_MVC_Sample
Netty_Spring_MVC_Sample
master

搜索帮助

Cb406eda 1850385 E526c682 1850385