Skip to content

Latest commit

 

History

History
49 lines (46 loc) · 2.68 KB

File metadata and controls

49 lines (46 loc) · 2.68 KB

spring-boot-starter-netty

[English] [中文]

Introduction

  • 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.

Maven Dependencies

  1. Clone project and install:

    $ mvn clean install
  2. 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>

Blogs about how to design/code this project

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容器的实现(五)