Package org.springframework.boot.autoconfigure.web

Examples of org.springframework.boot.autoconfigure.web.ServerProperties


        return new MockServletContext();
    }

    @Bean
    public ServerProperties serverProperties() {
        return new ServerProperties();
    }
View Full Code Here


        ConsulProperties consulProperties = context.getBean(ConsulProperties.class);
        if (!consulProperties.isEnabled())
            return;

        ApplicationProperties appProps = context.getBean(ApplicationProperties.class);
        ServerProperties serverProperties = context.getBean(ServerProperties.class);
        AgentClient agentClient = context.getBean(AgentClient.class);

        Service service = new Service();
        service.setName(appProps.getId());
        Integer port = serverProperties.getPort();
        if (port == null) {
            port = 8080;
        }
        service.setPort(port);
        service.setTags(consulProperties.getTags());
View Full Code Here

      return new RestTemplate();
    }

    @Bean
    public ServerProperties serverProperties() {
      ServerProperties properties = new ServerProperties();
      properties.setPort(0);
      return properties;
    }
View Full Code Here

  // In case server auto configuration hasn't been included
  @Bean
  @ConditionalOnMissingBean
  @ConditionalOnWebApplication
  public ServerProperties serverProperties() {
    return new ServerProperties();
  }
View Full Code Here

      return this.count;
    }

    @Bean
    public ServerProperties serverProperties() {
      ServerProperties properties = new ServerProperties() {
        @Override
        public void customize(ConfigurableEmbeddedServletContainer container) {
          ServerPortConfig.this.count++;
          super.customize(container);
        }
      };
      properties.setPort(ports.get().server);
      return properties;
    }
View Full Code Here

TOP

Related Classes of org.springframework.boot.autoconfigure.web.ServerProperties

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.