20220810 idea_springboot_啓動 No active profile set, falling back to default profiles: default

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    問題分析

當作一個常識來記吧

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章