方式一:右鍵項目 選擇 properties 添加運行時環境即可
方式二:如果是maven項目:
可以在pom.xml中加入
1 <dependency> 2 <groupId>javax.servlet</groupId> 3 <artifactId>servlet-api</artifactId> 4 <version>2.5</version> 5 <scope>provided</scope> 6 </dependency>
方式一:右鍵項目 選擇 properties 添加運行時環境即可
方式二:如果是maven項目:
可以在pom.xml中加入
1 <dependency> 2 <groupId>javax.servlet</groupId> 3 <artifactId>servlet-api</artifactId> 4 <version>2.5</version> 5 <scope>provided</scope> 6 </dependency>
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。