Skip to content
Snippets Groups Projects
Commit 80666d17 authored by Antoine Rey's avatar Antoine Rey
Browse files

Moving static resources from WEB-INF to src/main/resources/static

parent 104b4d27
No related branches found
No related tags found
No related merge requests found
Showing
with 26 additions and 6 deletions
target/*
.settings/*
target/
.settings/
.classpath
.project
.idea
*.iml
/target
generated/
......@@ -30,6 +30,11 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
......@@ -48,6 +53,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
......
package org.springframework.samples.petclinic.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@Configuration
public class WebConfig extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/").setViewName("index");
}
}
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -38,6 +38,6 @@ petClinicApp.config(['$locationProvider', '$routeProvider', '$httpProvider', fun
var mod = 'layout' + c.toUpperCase().substring(0, 1) + c.substring(1);
angular.module(mod, []);
angular.module(mod).component(mod, {
templateUrl: "scripts/app/fragments/" + c + ".html"
templateUrl: "scripts/fragments/" + c + ".html"
});
});
\ No newline at end of file
<div class="container">
<div class="row">
<div class="col-12 text-center"><img src="/resources/images/spring-pivotal-logo.png"
<div class="col-12 text-center"><img src="/images/spring-pivotal-logo.png"
alt="Sponsored by Pivotal"/></div>
</div>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment