在IDEA中tomcat不能運作,點開Edit Configuration發現如下圖情況:tomcat圖示貓上有個紅叉,且下面有警告提示:Error: Application Server not specified。
解決方案:
首先,在Application server中,點選Configure…,選擇自己安裝的tomcat;
其次,下面的JRE一定要選,不能為空,否則還是報錯!
配好這兩個東西之後,紅叉和Error都将得到解決。
在IDEA中tomcat不能運作,點開Edit Configuration發現如下圖情況:tomcat圖示貓上有個紅叉,且下面有警告提示:Error: Application Server not specified。
解決方案:
首先,在Application server中,點選Configure…,選擇自己安裝的tomcat;
其次,下面的JRE一定要選,不能為空,否則還是報錯!
配好這兩個東西之後,紅叉和Error都将得到解決。