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
7c4c68ce
Commit
7c4c68ce
authored
Aug 06, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10 from dling/master
# By Daniel Ling # Via Daniel Ling * pull10: Fix code typos in README
parents
54cb7b39
f725f7d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
README.md
spring-boot/README.md
+2
-2
No files found.
spring-boot/README.md
View file @
7c4c68ce
...
@@ -184,7 +184,7 @@ server that sets its port from an injected `@Value`.
...
@@ -184,7 +184,7 @@ server that sets its port from an injected `@Value`.
public
class
MyConfiguration
{
public
class
MyConfiguration
{
@Value
(
"${tomcatport:8080}"
)
@Value
(
"${tomcatport:8080}"
)
private
String
port
;
private
int
port
;
@Bean
@Bean
public
EmbeddedServletContainerFactory
servletContainer
()
{
public
EmbeddedServletContainerFactory
servletContainer
()
{
...
@@ -208,7 +208,7 @@ public EmbeddedServletContainerFactory servletContainer() {
...
@@ -208,7 +208,7 @@ public EmbeddedServletContainerFactory servletContainer() {
TomcatEmbeddedServletContainerFactory
factory
=
new
TomcatEmbeddedServletContainerFactory
();
TomcatEmbeddedServletContainerFactory
factory
=
new
TomcatEmbeddedServletContainerFactory
();
factory
.
setPort
(
9000
);
factory
.
setPort
(
9000
);
factory
.
setSessionTimeout
(
10
,
TimeUnit
.
MINUTES
);
factory
.
setSessionTimeout
(
10
,
TimeUnit
.
MINUTES
);
factory
.
add
add
ErrorPages
(
new
ErrorPage
(
HttpStatus
.
404
,
"/notfound.html"
);
factory
.
addErrorPages
(
new
ErrorPage
(
HttpStatus
.
404
,
"/notfound.html"
);
return
factory
;
return
factory
;
}
}
```
```
...
...
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