Two choices are available to users for welcome page
* For a jar deployment add classpath:static/index.html (works via Spring MVC mapping) * For a war the same thing works, but so does adding index.html to src/main/webapp (works via container default servlet) [Fixes #54092261] [bs-252]
This commit is contained in:
11
spring-boot-samples/spring-boot-sample-web-static/src/main/webapp/css/bootstrap.min.css
vendored
Normal file
11
spring-boot-samples/spring-boot-sample-web-static/src/main/webapp/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Static</title>
|
||||
<link rel="stylesheet" href="/css/bootstrap.min.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="navbar">
|
||||
<div class="navbar-inner">
|
||||
<a class="brand"
|
||||
href="https://github.com/SpringSource/spring-boot">
|
||||
Spring Boot
|
||||
</a>
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a href="/">
|
||||
Home
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<h1>Home</h1>
|
||||
<div>
|
||||
Some static content
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user