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