尝试springboot的时候遇到两个小问题
1、Multiple Spring Data modules found, entering strict repository configuration mode!
2、No active profile set, falling back to default profiles: default!
启动也没啥影响,但是看着这俩大叹号就感觉不太舒服。。
第一个问题解决方法:在启动类注解中 这样写
@SpringBootApplication(exclude = { RedisRepositoriesAutoConfiguration.class })
第二个问题解决方法:是因为我弄了多环境,idea上 active profile项设置一下 -Dspring.profiles.active=dev,我的两个环境资源文件夹是dev 和爬pro

原文:https://www.cnblogs.com/tmxk-qfzz/p/12162994.html