|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2016 the original author or authors.
|
|
|
|
|
* Copyright 2012-2017 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -21,7 +21,6 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import org.hibernate.validator.constraints.NotBlank;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.context.annotation.Description;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
@ -33,7 +32,6 @@ public class SampleController {
|
|
|
|
|
|
|
|
|
|
private final HelloWorldProperties helloWorldProperties;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
public SampleController(HelloWorldProperties helloWorldProperties) {
|
|
|
|
|
this.helloWorldProperties = helloWorldProperties;
|
|
|
|
|
}
|
|
|
|
@ -41,8 +39,8 @@ public class SampleController {
|
|
|
|
|
@GetMapping("/")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public Map<String, String> hello() {
|
|
|
|
|
return Collections.singletonMap("message", "Hello " +
|
|
|
|
|
this.helloWorldProperties.getName());
|
|
|
|
|
return Collections.singletonMap("message",
|
|
|
|
|
"Hello " + this.helloWorldProperties.getName());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected static class Message {
|
|
|
|
|