- 通过启动参数加载配置文件(无需书写配置文件扩展名)
-
properties与yml文件格式均支持
-
也可以根据加载文件类路径来配置
- 可以配置多个文件,如果多个文件中有重复的属性,最终生效的是最后一个文件中的属性
--spring.config.location=classpath:/ebank.properties,classpath:/ebank-server.properties
- 可以看到最终生效的是 8882 端口,是后面配置的文件当中的
properties与yml文件格式均支持
也可以根据加载文件类路径来配置
--spring.config.location=classpath:/ebank.properties,classpath:/ebank-server.properties
暂无评论
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14
2024-06-14