Package org.springframework.boot.context.embedded.tomcat

Examples of org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory


  @Configuration
  static class Config {

    @Bean
    public TomcatEmbeddedServletContainerFactory containerFactory() {
      TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory();
      factory.setPort(SocketUtils.findAvailableTcpPort(40000));
      return factory;
    }
View Full Code Here


  @Configuration
  static class TomcatConfiguration {

    @Bean
    public TomcatEmbeddedServletContainerFactory containerFactory() {
      TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory();
      factory.setPort(SocketUtils.findAvailableTcpPort(40000));
      return factory;
    }
View Full Code Here

    // http://docs.spring.io/spring-boot/docs/1.1.5.RELEASE/reference/htmlsingle/#howto-enable-multiple-connectors-in-tomcat

    @Bean
    public EmbeddedServletContainerFactory servletContainer() {
        TomcatEmbeddedServletContainerFactory tomcat = new TomcatEmbeddedServletContainerFactory();
        tomcat.setContextPath(getContextPath());
        tomcat.addAdditionalTomcatConnectors(createSslConnector());
        return tomcat;
    }
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.