51CTOspring boot 如何知道加载那个配置文件 本文将通过具体的示例来说明。 1. Spring Boot的配置文件. Spring Boot默认会加载以下配置文件,按照优先级顺序: 用户自定义的配置文件,比如 application 更多内容请查看https://blog.51cto.com/u_16213447/12439350
SpringBoot系列——加载自定义配置文件 本文记录SpringBoot加载自定义配置文件的两个方法. 直接在具体的类上面使用注解加载. 比如当你在ServiceAImpl需要使用到xxx.properties时. "classpath:xxx.properties", public class ServiceAImpl{ 更多内容请查看https://www.cnblogs.com/huanzi-qch/p/11122107.html