idea springboot druid获取properties数据的一种方式

版权声明:欢迎转载 https://blog.csdn.net/weixin_33387378/article/details/88573919
@Value("${spring.datasource.url}")
    private String url;
    @Value("${spring.datasource.username}")
    private String username;
    @Value("${spring.datasource.password}")
    private String password;
    @Value("${spring.datasource.driver-class-name}")
    private String driverClassName;

猜你喜欢

转载自blog.csdn.net/weixin_33387378/article/details/88573919