Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java spring boot 2.4.0或更高版本中的多文档属性和配置文件 列表项_Java_Spring Boot_Application.properties - Fatal编程技术网

Java spring boot 2.4.0或更高版本中的多文档属性和配置文件 列表项

Java spring boot 2.4.0或更高版本中的多文档属性和配置文件 列表项,java,spring-boot,application.properties,Java,Spring Boot,Application.properties,Spring版本:2.4.5 Spring抛出错误:重复的属性键 文档中有一个类似的例子,什么可能导致问题 Hi@Sourav请检查以下答案: #--- service.endpoint = http://test.co/ service.auth.username = test #--- spring.config.activate.on-profile=prod service.endpoint = http://prod.co/ service.auth.username= prod

Spring版本:2.4.5

Spring抛出错误:重复的属性键

文档中有一个类似的例子,什么可能导致问题


Hi@Sourav请检查以下答案:
#---
service.endpoint = http://test.co/
service.auth.username = test

#---
spring.config.activate.on-profile=prod
service.endpoint = http://prod.co/
service.auth.username= prod