啓動報錯No destination was configured. Use to add one or more destinations to the appender

解決啓動報錯No destination was configured. Use <destination> to add one or more destinations to the appender

 

原因:沒有指定 要啓動哪個環境的配置文件    spring.profiles.active=dev

解決:配置文件中指定 spring.profiles.active=dev

可能某些地方用到了特定的這個參數,比如日誌配置文件:

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