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
36c3ceab
Commit
36c3ceab
authored
Jul 29, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include servlet support for index.html resources
Issue: #54228642
parent
772cc851
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
WebMvcAutoConfiguration.java
...ework/boot/autoconfigure/web/WebMvcAutoConfiguration.java
+2
-3
SampleWebStaticApplicationTests.java
...ework/boot/sample/ui/SampleWebStaticApplicationTests.java
+0
-3
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java
View file @
36c3ceab
...
@@ -88,10 +88,9 @@ public class WebMvcAutoConfiguration {
...
@@ -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"
;
}
}
}
}
...
...
spring-boot-samples/spring-boot-sample-web-static/src/test/java/org/springframework/boot/sample/ui/SampleWebStaticApplicationTests.java
View file @
36c3ceab
...
@@ -8,7 +8,6 @@ import java.util.concurrent.TimeUnit;
...
@@ -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;
...
@@ -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
;
...
...
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