1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

Merge pull request #920 from chuntaojun/fix_issue_859

fix(nacos): fix issue #859
This commit is contained in:
format
2019-09-17 14:14:05 +08:00
committed by GitHub
3 changed files with 46 additions and 37 deletions

View File

@@ -88,10 +88,14 @@ class SampleController {
String userName;
@Value("${user.age:25}")
int age;
Integer age;
@Autowired
private NacosConfigManager nacosConfigManager;
@RequestMapping("/user")
public String simple() {
return "Hello Nacos Config!" + "Hello " + userName + " " + age + "!";
return "Hello Nacos Config!" + "Hello " + userName + " " + age + "!"
+ nacosConfigManager.getConfigService();
}
}