面试突击75:SpringBoot 有几种读取配置文件的方法?
SpringBoot中读取配置文件有以下5种方法:使用@Value读取配置文件。使用@ConfigurationProperties读取配置文件。使用Environment读取配置文件。使用@PropertySource读取配置文件。使用原生方
SpringBoot中读取配置文件有以下5种方法:使用@Value读取配置文件。使用@ConfigurationProperties读取配置文件。使用Environment读取配置文件。使用@PropertySource读取配置文件。使用原生方
!在这里插入图片描述(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/2221a89a0823c032bf276b2af8d0bc67.png)!在这里插入图片描述(https://imghelloworld.oss