Skip to content
Snippets Groups Projects
Commit 3ea73c4e authored by OZGCloud's avatar OZGCloud
Browse files

OZG-568 fix resolve index.html on reload

parent e700a86c
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@
<properties>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<spring-boot.build-image.imageName>docker.ozg-sh.de/goofy:build-latest</spring-boot.build-image.imageName>
</properties>
<dependencies>
......@@ -281,7 +283,8 @@
<username>admin</username>
<password>admin</password>
<!-- <repository>default-route-openshift-image-registry.apps.lab.okd.local/sh-kiel-dev/goofy</repository> -->
<repository>registry.ozg-sh.de/sh-land/goofy</repository>
<!-- <repository>registry.ozg-sh.de/sh-land/goofy</repository> -->
<repository>docker.ozg-sh.de/goofy</repository>
<tag>${git.branch}-${project.version}</tag>
<useMavenSettingsForAuth>true</useMavenSettingsForAuth>
<buildArgs>
......
......@@ -4,7 +4,6 @@ import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.http.CacheControl;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
......@@ -35,7 +34,8 @@ public class WebConfig implements WebMvcConfigurer {
protected Resource getResource(String resourcePath, Resource location) throws IOException {
Resource requestedResource = location.createRelative(resourcePath);
return requestedResource.exists() && requestedResource.isReadable() ? requestedResource
: new ClassPathResource(RESOURCE_LOCATION + "index.html");
// : new ClassPathResource(RESOURCE_LOCATION + "index.html");
: super.getResource("index.html", location);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment