1 問題
idea啓動,報 No active profile set, falling back to default profiles: default 無法啓動
2 解決方案
2.1 未解決_查日誌
本來以爲沒有報錯,直接找了外援,查看了非console的idea下的日誌,晦澀難懂,未解決
2.2 已解決_查cosole的日誌
從console的日誌拿到 No active profile set, falling back to default profiles: default,多方搜索,終於解決,解決方案時是在pom中加上以下依賴
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
3 問題分析
當作一個常識來記吧