- This is a Spring Boot embedded servlet container project base on netty API.
- Only supports Netty versions greater than 4.1.41.Final, you can specify the version number to be used in the pom.xml file of the project.
-
Clone project and install:
$ mvn clean install
-
add the dependencies below to your maven project:
<dependencies>
<!-- exludes embedded Tomcat -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- include this netty servlet container -->
<dependency>
<groupId>io.gitlab.leibnizhu</groupId>
<artifactId>spring-boot-starter-netty</artifactId>
<version>1.1-RELEASE</version>
</dependency>
<!-- Specify Netty version. It is necessary to compatibility with other Netty-based dependencies -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.113.Final</version>
</dependency>
</dependencies>
Only Chineses, updating one after another……
基于Netty的Spring Boot内置Servlet容器的实现(一)
基于Netty的Spring Boot内置Servlet容器的实现(二)
基于Netty的Spring Boot内置Servlet容器的实现(三)
基于Netty的Spring Boot内置Servlet容器的实现(四)
基于Netty的Spring Boot内置Servlet容器的实现(五)