首页 > 技术文章 > spirngboot 注解方式注入自定义参数
yanlong300 2017-11-20 09:36 原文
在代码中
@value("oracle.user") private String user;
在配置文件中
oracle.user=root