SpringBoot项目启动失败No active profile set, falling back to default profiles

在pom.xml文件添加 spring-boot-starter-web依赖

		<!-- SpringBoot Web容器 -->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>

 properties文件指定

spring.profiles.active=druid

 

posted @ 2021-11-18 09:12  欣欣点灯  阅读(259)  评论(0编辑  收藏  举报