springboot根据bean定义写配置文件application.yaml
springboot 中bean定义好了,通过配置文件给bean注入数据如何实现呢?为省事,我直接把官方的bean例子给搬过来吧,如下:package com.example;import java.net.InetAddress;import java.util.ArrayList;import java.util.Collections;import java.util.List;import org.springframework.boot.context.properties



