带Spring.config.location的Spring
我试图指向外部配置文件的路径,如下所示:带Spring.config.location的Spring,spring,spring-boot,config,Spring,Spring Boot,Config,我试图指向外部配置文件的路径,如下所示: --spring.config.location=file: C:/Users/some_user/workspace/repository1/payment-api/payment.yml 但它不起作用。知道为什么吗?正确的前缀是file://。在Windows上,如果文件URL是带驱动器前缀的绝对URL,则需要在文件URL中添加一个/in 试一试file:///C:/Users/some_user/workspace/repository1/pay
--spring.config.location=file: C:/Users/some_user/workspace/repository1/payment-api/payment.yml
但它不起作用。知道为什么吗?正确的前缀是file://。在Windows上,如果文件URL是带驱动器前缀的绝对URL,则需要在文件URL中添加一个/in
试一试file:///C:/Users/some_user/workspace/repository1/payment-api/payment.yml 正确的前缀是file://。在Windows上,如果文件URL是带驱动器前缀的绝对URL,则需要在文件URL中添加一个/in
试一试file:///C:/Users/some_user/workspace/repository1/payment-api/payment.yml