Include servlet support for index.html resources

Issue: #54228642
pull/9/head
Phillip Webb 11 years ago
parent 772cc851a0
commit 36c3ceab97

@ -88,10 +88,9 @@ public class WebMvcAutoConfiguration {
private static final String[] STATIC_INDEX_HTML_RESOURCES; private static final String[] STATIC_INDEX_HTML_RESOURCES;
static { static {
STATIC_INDEX_HTML_RESOURCES = new String[CLASSPATH_RESOURCE_LOCATIONS.length]; STATIC_INDEX_HTML_RESOURCES = new String[RESOURCE_LOCATIONS.length];
for (int i = 0; i < STATIC_INDEX_HTML_RESOURCES.length; i++) { for (int i = 0; i < STATIC_INDEX_HTML_RESOURCES.length; i++) {
STATIC_INDEX_HTML_RESOURCES[i] = CLASSPATH_RESOURCE_LOCATIONS[i] STATIC_INDEX_HTML_RESOURCES[i] = RESOURCE_LOCATIONS[i] + "index.html";
+ "index.html";
} }
} }

@ -8,7 +8,6 @@ import java.util.concurrent.TimeUnit;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.ConfigurableApplicationContext;
@ -27,8 +26,6 @@ import static org.junit.Assert.assertTrue;
* *
* @author Dave Syer * @author Dave Syer
*/ */
@Ignore
// FIXME See #54228642
public class SampleWebStaticApplicationTests { public class SampleWebStaticApplicationTests {
private static ConfigurableApplicationContext context; private static ConfigurableApplicationContext context;

Loading…
Cancel
Save