Implemented an example for a controller, that fetches remote-data
[demos/testing] / src / main / java / de / juplo / demo / DemoApplication.java
1 package de.juplo.demo;
2
3 import org.springframework.beans.factory.annotation.Value;
4 import org.springframework.boot.SpringApplication;
5 import org.springframework.boot.autoconfigure.SpringBootApplication;
6 import org.springframework.context.annotation.Bean;
7
8 @SpringBootApplication
9 public class DemoApplication {
10
11   @Bean
12   public RemoteContentController remoteContentController(
13       @Value("${remote.host}")String remoteHost)
14   {
15     return new RemoteContentController(remoteHost);
16   }
17
18
19   public static void main(String[] args) {
20                 SpringApplication.run(DemoApplication.class, args);
21         }
22
23 }