Java Code Examples for org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer#setPort()
The following examples show how to use
org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer#setPort() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MonitorClientApplication.java From MonitorClient with Apache License 2.0 | 5 votes |
@Override public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) { MimeMappings mappings = new MimeMappings(MimeMappings.DEFAULT); mappings.add("html", "text/html;charset=utf-8"); configurableEmbeddedServletContainer.setMimeMappings(mappings ); String Lport = IniUtil.getLport(System.getProperty("user.dir") + File.separator + "config/config.ini"); configurableEmbeddedServletContainer.setPort(Integer.parseInt(Lport)); }
Example 2
Source File: Application.java From ethereum-secure-proxy with GNU Affero General Public License v3.0 | 5 votes |
@Bean public EmbeddedServletContainerCustomizer containerCustomizer() { return new EmbeddedServletContainerCustomizer() { @Override public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(cmdLineResult.getPort()); } }; }
Example 3
Source File: MainApplication.java From DETA_BackEnd with Apache License 2.0 | 4 votes |
public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(8080); }
Example 4
Source File: YamlConfBean.java From Spring with Apache License 2.0 | 4 votes |
@Override public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(appSettings.getPort()); container.setContextPath(appSettings.getContext()); }
Example 5
Source File: HttpDownSpringBoot.java From proxyee-down with Apache License 2.0 | 4 votes |
@Override public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(Integer.parseInt(ConfigUtil.getValue("tomcat.server.port"))); }
Example 6
Source File: MainApplication.java From DETA_BackEnd with Apache License 2.0 | 4 votes |
public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(8080); }
Example 7
Source File: Application.java From baidu-chain-dog with GNU General Public License v3.0 | 4 votes |
@Override public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) { configurableEmbeddedServletContainer.setPort(8081); }
Example 8
Source File: EndpointAutoConfigurationTest.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
@Override public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(9091); }
Example 9
Source File: ServerStarter.java From sr201 with MIT License | 4 votes |
@Override public void customize(final ConfigurableEmbeddedServletContainer container) { // apply port container.setPort(settings.getServerPort()); }
Example 10
Source File: HttpServerCustomizer.java From searchbox-core with Apache License 2.0 | 4 votes |
@Override public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(httpServerConfig.getPort()); }
Example 11
Source File: NettyClientEmbeddedCommandLineApplication.java From Thunder with Apache License 2.0 | 4 votes |
@Override public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(8082); }