spring-boot-starter-netty

Parent pom providing dependency and plugin management for applications built with Maven

License

License

Categories

Categories

Spring Boot Container Microservices Net Netty Networking
GroupId

GroupId

io.gitlab.leibnizhu
ArtifactId

ArtifactId

spring-boot-starter-netty
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

spring-boot-starter-netty
Parent pom providing dependency and plugin management for applications built with Maven
Project Organization

Project Organization

Pivotal Software, Inc.
Source Code Management

Source Code Management

https://github.com/Leibnizhu/spring-boot-starter-netty

Download spring-boot-starter-netty

How to add to project

<!-- https://jarcasting.com/artifacts/io.gitlab.leibnizhu/spring-boot-starter-netty/ -->
<dependency>
    <groupId>io.gitlab.leibnizhu</groupId>
    <artifactId>spring-boot-starter-netty</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.gitlab.leibnizhu/spring-boot-starter-netty/
implementation 'io.gitlab.leibnizhu:spring-boot-starter-netty:1.1'
// https://jarcasting.com/artifacts/io.gitlab.leibnizhu/spring-boot-starter-netty/
implementation ("io.gitlab.leibnizhu:spring-boot-starter-netty:1.1")
'io.gitlab.leibnizhu:spring-boot-starter-netty:jar:1.1'
<dependency org="io.gitlab.leibnizhu" name="spring-boot-starter-netty" rev="1.1">
  <artifact name="spring-boot-starter-netty" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.gitlab.leibnizhu', module='spring-boot-starter-netty', version='1.1')
)
libraryDependencies += "io.gitlab.leibnizhu" % "spring-boot-starter-netty" % "1.1"
[io.gitlab.leibnizhu/spring-boot-starter-netty "1.1"]

Dependencies

compile (5)

Group / Artifact Type Version
io.netty : netty-all jar 4.1.50.Final
org.javassist : javassist jar 3.20.0-GA
org.springframework.boot : spring-boot-starter-web jar 1.5.2.RELEASE
javax.servlet : javax.servlet-api jar 3.1.0
com.google.guava : guava jar 29.0-jre

test (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 1.5.2.RELEASE
com.alibaba : fastjson jar 1.2.71
org.openjdk.jmh : jmh-core jar 1.19
org.openjdk.jmh : jmh-generator-annprocess jar 1.19

Project Modules

There are no modules declared in this project.

spring-boot-starter-netty

[English] [中文]

Introduction

This is a Spring Boot embedded servlet container project base on netty API (4.1.12.Final).
This project has been publish into maven center repository, refer to The Central Repository.

Maven Dependencies

  1. 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</version>
    </dependency>
</dependencies>
  1. add scanBasePackages property to @SpringBootApplication annotation in your Spring-Boot entry class, like:
@SpringBootApplication(scanBasePackages = {"io.gitlab.leibnizhu", "your.package.name"})
@EnableScheduling
public class AwpApplication extends SpringBootServletInitializer {
    public AwpApplication() {
    }

    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(new Class[]{AwpApplication.class});
    }

    public static void main(String[] args) {
        SpringApplication.run(AwpApplication.class, args);
    }
}
  1. run your Spring-Boot application and enjoy it.

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

Versions

Version
1.1
1.0