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
4d60b09c
Commit
4d60b09c
authored
Dec 27, 2013
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revise docs for port discovery
parent
cdb45cff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
howto.md
docs/howto.md
+4
-2
No files found.
docs/howto.md
View file @
4d60b09c
...
...
@@ -440,8 +440,10 @@ To scan for a free port (using OS natives to prevent clashes) use
You can access the port the server is running on from log output or
from the
`EmbeddedWebApplicationContext`
via its
`EmbeddedServletContainer`
(you can
`@Autowired`
an
`ApplicationContext`
and downcast it to obtain the specific type).
`EmbeddedServletContainer`
. The best way to get that and be sure that
it has initialized is to add a
`@Bean`
of type
`ApplicationListener<EmbeddedServletContainerInitializedEvent>`
and
pull the container out of the event wehen it is published.
## Change the HTTP Port or Address of the Actuator Endpoints
...
...
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