Commit 135ebb8d authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #5013 from izeye/polish-20160123

* pr/5013:
  Polish
parents 4c1bb388 9a31e028
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
package org.springframework.boot.autoconfigure.mustache.web; package org.springframework.boot.autoconfigure.mustache.web;
import java.io.ByteArrayInputStream;
import java.io.InputStream; import java.io.InputStream;
import java.util.Locale; import java.util.Locale;
import org.fusesource.hawtbuf.ByteArrayInputStream;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
......
...@@ -1824,8 +1824,8 @@ inside a war will break Spring Boot applications. ...@@ -1824,8 +1824,8 @@ inside a war will break Spring Boot applications.
If you need to perform servlet context initialization in a Spring Boot application, you If you need to perform servlet context initialization in a Spring Boot application, you
should register a bean that implements the should register a bean that implements the
`org.springframework.boot.context.embedded.ServletContextInitializer` interface. The `org.springframework.boot.context.embedded.ServletContextInitializer` interface. The
single `onStartup` method provides access to the `ServletContext`, and can easily be used single `onStartup` method provides access to the `ServletContext`, and can easily be used
as an adapter to an existing `WebApplicationInitializer if necessary. as an adapter to an existing `WebApplicationInitializer` if necessary.
......
...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
public class LaunchVerficationController { public class LaunchVerificationController {
@RequestMapping("/") @RequestMapping("/")
public String verifyLaunch() { public String verifyLaunch() {
......
...@@ -829,7 +829,7 @@ public class SpringApplication { ...@@ -829,7 +829,7 @@ public class SpringApplication {
} }
try { try {
try { try {
handeExitCode(context, exception); handleExitCode(context, exception);
listeners.finished(context, exception); listeners.finished(context, exception);
} }
finally { finally {
...@@ -856,7 +856,7 @@ public class SpringApplication { ...@@ -856,7 +856,7 @@ public class SpringApplication {
} }
} }
private void handeExitCode(ConfigurableApplicationContext context, private void handleExitCode(ConfigurableApplicationContext context,
Throwable exception) { Throwable exception) {
int exitCode = getExitCodeFromException(context, exception); int exitCode = getExitCodeFromException(context, exception);
if (exitCode != 0) { if (exitCode != 0) {
......
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