在引用此链接后,我可以从config / application / key1
下拉值代码如下:
@SpringBootApplication
@EnableAutoConfiguration
@EnableDiscoveryClient
@RestController
@EnableConfigurationProperties
public class Application {
@Autowired
private Environment env;
@RequestMapping("/")
public String home() {
return env.getProperty("keys");
}
public static void main(String[] args) {
new SpringApplicationBuilder(Application.class).web(true).run(args);
}
}
key1
(更深一级)的路径中访问config/application/keys/key1
值? config/application.key1
和config/software/key1
中有重复,我该如何选择要删除哪一项?