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    问题分析

当作一个常识来记吧

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