Spring Boot Servlet Inherit Channel

Run your Spring Boot application with inherited socket created on behalf by supervisor.

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

cz.jirutka.spring
Идентификатор

Идентификатор

spring-boot-servlet-inherit-channel
Последняя версия

Последняя версия

0.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Spring Boot Servlet Inherit Channel
Run your Spring Boot application with inherited socket created on behalf by supervisor.
Ссылка на сайт

Ссылка на сайт

http://github.com/jirutka/spring-boot-servlet-inherit-channel
Система контроля версий

Система контроля версий

http://github.com/jirutka/spring-boot-servlet-inherit-channel

Скачать spring-boot-servlet-inherit-channel

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/cz.jirutka.spring/spring-boot-servlet-inherit-channel/ -->
<dependency>
    <groupId>cz.jirutka.spring</groupId>
    <artifactId>spring-boot-servlet-inherit-channel</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/cz.jirutka.spring/spring-boot-servlet-inherit-channel/
implementation 'cz.jirutka.spring:spring-boot-servlet-inherit-channel:0.1.1'
// https://jarcasting.com/artifacts/cz.jirutka.spring/spring-boot-servlet-inherit-channel/
implementation ("cz.jirutka.spring:spring-boot-servlet-inherit-channel:0.1.1")
'cz.jirutka.spring:spring-boot-servlet-inherit-channel:jar:0.1.1'
<dependency org="cz.jirutka.spring" name="spring-boot-servlet-inherit-channel" rev="0.1.1">
  <artifact name="spring-boot-servlet-inherit-channel" type="jar" />
</dependency>
@Grapes(
@Grab(group='cz.jirutka.spring', module='spring-boot-servlet-inherit-channel', version='0.1.1')
)
libraryDependencies += "cz.jirutka.spring" % "spring-boot-servlet-inherit-channel" % "0.1.1"
[cz.jirutka.spring/spring-boot-servlet-inherit-channel "0.1.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.16

provided (4)

Идентификатор библиотеки Тип Версия
org.eclipse.jetty : jetty-server jar
org.slf4j : jcl-over-slf4j jar
org.springframework.boot : spring-boot jar
org.springframework.boot : spring-boot-autoconfigure jar

Модули Проекта

Данный проект не имеет модулей.

Spring Boot Servlet Inherit Channel

Build Status Codacy code quality Maven Central

TODO

Usage

Using Auto-configuration

@SpringBootApplication
@EnableServletInheritChannel
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}

To start the application with inherited channel, set attribute server.inherit-channel to true (e.g. using CLI argument --server.inherit-channel=true)

Without Auto-configuration

@Configuration
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public JettyEmbeddedServletContainerFactory embeddedServletContainerFactory(
            @Value("${server.inherit-channel:false}") boolean inheritChannel) {

        JettyEmbeddedServletContainerFactory factory = new JettyEmbeddedServletContainerFactory();
        if (inheritChannel) {
            factory.addServerCustomizers(new InheritChannelJettyServerCustomizer());
        }
        return factory;
    }
}

How to get it?

Released versions are available in The Central Repository. Just add this artifact to your project:

Maven
<dependency>
    <groupId>cz.jirutka.spring</groupId>
    <artifactId>spring-boot-servlet-inherit-channel</artifactId>
    <version>0.1.1</version>
</dependency>
Gradle
compile 'cz.jirutka.spring:spring-boot-servlet-inherit-channel:0.1.1'

However if you want to use the last snapshot version, you have to add the JFrog OSS repository:

Maven
<repository>
    <id>jfrog-oss-snapshot-local</id>
    <name>JFrog OSS repository for snapshots</name>
    <url>https://oss.jfrog.org/oss-snapshot-local</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>
Gradle
repositories {
  maven {
    url 'https://oss.jfrog.org/oss-snapshot-local'
  }
}

Contributions

…are always welcome. Don’t hesitate to submit a bug report or a pull requests.

License

This project is licensed under Apache License 2.0.

Версии библиотеки

Версия
0.1.1
0.1.0