IntelliJ啟動SpringBoot專案發生Error starting Tomcat context === ## Error starting Tomcat context 欲啟動位於`share`底下的module `shadm` </font>,在STS(Eclise)可以正常啟動成功 ![](https://hackmd.io/_uploads/rko2nt1GT.png) 然而使用intelliJ卻會啟動失敗,出現`o.s.b.web.embedded.tomcat.TomcatStarter`拋出的<font color=prince>Error starting Tomcat context</font>錯誤 ![](https://hackmd.io/_uploads/SyuLjK1MT.png) ### 解決方式 發現"Run Configuration -> Working directory"的欄位是空的,使用以下方式指定工作路徑: 1. 針對要啟動的service進行配置【Edit Configuration】 ![](https://hackmd.io/_uploads/rJL2kckMp.png) 2. 設定【Working Directory】路徑指向當前module `shadm` ![](https://hackmd.io/_uploads/Hy5Elckfp.png) * 測試 於intelliJ再次啟動module `shadm` ![](https://hackmd.io/_uploads/HJWM8cJMa.png) 可以啟動成功!