Springboot 加载全部 properties 或 yml (yaml) 配置文件
在启动类(或在其它配置类)中添加一个 Bean:package com.your.artifact;import cn.hutool.core.util.ArrayUtil;import org.springframework.beans.factory.annotation.Value;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringB
原创
2020-12-31 10:11:37 ·
637 阅读 ·
1 评论