<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-thymeleaf</artifactId>
+ <groupId>de.juplo</groupId>
+ <artifactId>http-resources</artifactId>
+ <version>2.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
</dependency>
<dependency>
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.Bean;
+import org.springframework.http.client.ClientHttpRequestFactory;
+import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
+
@SpringBootApplication
public class HttpResourcesDemoApplication
{
+ @Bean
+ public ClientHttpRequestFactory clientHttpRequestFactory()
+ {
+ return new HttpComponentsClientHttpRequestFactory();
+ }
+
+
public static void main(String[] args)
{
SpringApplication.run(HttpResourcesDemoApplication.class, args);
-
+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.thymeleaf.prefix=/
+spring.thymeleaf.suffix=.html
+logging.level.de.juplo=DEBUG