Spring基础:@Import,@PropertySource,Spring整合junit问题分析,Spring整合junit,20191217

@Import注解 写上配置文件properties ![在这里插入图片描述](https://img-blog.csdnimg.cn/20191217092219179.png) 在主配置类上,添加**@PropertySource**注解,指定配置文件的位置 在需要的类中,读取信息 Spring整合junit问题分析 让springBoot和junit整合 先在pom.xml中导入依赖 使用x
相关文章
相关标签/搜索