package pl.java.scalatech;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
class HelloController {

    @Value("${application.message:Hello World}")
    private String message ;
    
    @RequestMapping("/")
    public String hi() {
        return "hi!!";
    }
    
    @RequestMapping("/json")
    public @ResponseBody Map<String, String> json() {

        Map<String, String> map = new HashMap<>();
        map.put("slawek", "borowiec");
        map.put("message",message);

        return map;
    }
    
    
    
}
@@ -437,15 +437,10 @@
 sage
- 
 ;%0A
-    
 %0A   
@@ -511,28 +511,24 @@
 i!!%22;%0A    %7D%0A
-    
 %0A    @Reques
@@ -716,16 +716,17 @@
 essage%22,
+ 
 message)
@@ -758,20 +758,6 @@
   %7D%0A
-    %0A    %0A    
 %0A%7D

clean code