WIP
authorKai Moritz <kai@juplo.de>
Sat, 16 Jan 2021 10:14:47 +0000 (11:14 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 16 Jan 2021 10:14:47 +0000 (11:14 +0100)
pom.xml
src/main/java/de/juplo/demo/httpresources/HttpResourcesDemoApplication.java
src/main/resources/application.properties

diff --git a/pom.xml b/pom.xml
index 64227c7..bdc99e7 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
                </dependency>
                <dependency>
                        <groupId>de.juplo</groupId>
-                       <artifactId>http-resources</artifactId>
+                       <artifactId>thymeproxy</artifactId>
                        <version>2.0.0</version>
                </dependency>
                <dependency>
index f839e27..aec1079 100644 (file)
@@ -1,11 +1,8 @@
 package de.juplo.demo.httpresources;
 
-import de.juplo.httpresources.HttpResourceChainAwareResourceLoader;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.context.annotation.Bean;
-import org.springframework.context.support.GenericApplicationContext;
-import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
 import org.springframework.http.client.ClientHttpRequestFactory;
 import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
 
@@ -19,19 +16,6 @@ public class HttpResourcesDemoApplication
                return new HttpComponentsClientHttpRequestFactory();
        }
 
-       @Bean
-       HttpResourceChainAwareResourceLoader resourceLoader(
-                       GenericApplicationContext context,
-                       String[] sources) {
-               HttpResourceChainAwareResourceLoader loader =
-                               new HttpResourceChainAwareResourceLoader(
-                                               new PathMatchingResourcePatternResolver(),
-                                               sources
-                               );
-               context.setResourceLoader(loader);
-               return loader;
-       }
-
 
        public static void main(String[] args)
        {
index dd14ca8..3f6cd82 100644 (file)
@@ -1,7 +1,7 @@
 server.port=8080
 origin=http://localhost:8888
 juplo.http-resources.protocol-resolver.enabled=true
-spring.web.resources.static-locations"=classpath:/overwrite/,${origin},classpath:/fallback/
+spring.resources.static-locations"=classpath:/overwrite/,${origin},classpath:/fallback/
 spring.thymeleaf.prefix=/
 spring.thymeleaf.suffix=.html
 logging.level.de.juplo=DEBUG