1234567891011121314151617181920 |
- package com.dzdy.springcloudconfigclient;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * @author wangzhiyong
- * @date 2018/3/6
- */
- @RestController
- class HelloController {
- @Value("${hello.hello}")
- private String hello;
- @RequestMapping("/hello")
- public String from() {
- return this.hello;
- }
- }
|