Commit 7c4c68ce authored by Phillip Webb's avatar Phillip Webb

Merge pull request #10 from dling/master

# By Daniel Ling
# Via Daniel Ling
* pull10:
  Fix code typos in README
parents 54cb7b39 f725f7d0
......@@ -184,7 +184,7 @@ server that sets its port from an injected `@Value`.
public class MyConfiguration {
@Value("${tomcatport:8080}")
private String port;
private int port;
@Bean
public EmbeddedServletContainerFactory servletContainer() {
......@@ -208,7 +208,7 @@ public EmbeddedServletContainerFactory servletContainer() {
TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory();
factory.setPort(9000);
factory.setSessionTimeout(10, TimeUnit.MINUTES);
factory.addaddErrorPages(new ErrorPage(HttpStatus.404, "/notfound.html");
factory.addErrorPages(new ErrorPage(HttpStatus.404, "/notfound.html");
return factory;
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment