Spring boot @Test的时候需要设置 环境变量:spring.profiles.active = dev

本文转载:CSDN博客