Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
735b96dd
Commit
735b96dd
authored
Jan 07, 2015
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document how to configure multiple listeners when using Undertow
Closes gh-2191
parent
0688b1b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+25
-1
No files found.
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
735b96dd
...
@@ -611,6 +611,7 @@ Example in Gradle:
...
@@ -611,6 +611,7 @@ Example in Gradle:
----
----
[[howto-configure-undertow]]
[[howto-configure-undertow]]
=== Configure Undertow
=== Configure Undertow
Generally you can follow the advice from
Generally you can follow the advice from
...
@@ -624,7 +625,30 @@ own `UndertowEmbeddedServletContainerFactory`.
...
@@ -624,7 +625,30 @@ own `UndertowEmbeddedServletContainerFactory`.
[[howto-use-tomcat-8]]
[[howto-enable-multiple-listeners-in-undertow]]
=== Enable Multiple Listeners with Undertow
Add an `UndertowBuilderCustomizer` to the `UndertowEmbeddedServletContainerFactory` and
add a listener to the `Builder`:
[source,java,indent=0,subs="verbatim,quotes,attributes"]
----
@Bean
public UndertowEmbeddedServletContainerFactory embeddedServletContainerFactory() {
UndertowEmbeddedServletContainerFactory factory = new UndertowEmbeddedServletContainerFactory();
factory.addBuilderCustomizers(new UndertowBuilderCustomizer() {
@Override
public void customize(Builder builder) {
builder.addHttpListener(8080, "0.0.0.0");
}
});
return factory;
}
----
[[howto-use-tomcat-7]]
[[howto-use-tomcat-7]]
=== Use Tomcat 7
=== Use Tomcat 7
Tomcat 7 works with Spring Boot, but the default is to use Tomcat 8. If you cannot use
Tomcat 7 works with Spring Boot, but the default is to use Tomcat 8. If you cannot use
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment