1,新建maven-archetype-webapp 2,右键项目-->Properties-->选中Project Facets中的Runtimes标签,然后Java版本改为1.8,Dynamic Web Module先去掉勾选,点击apply,后再勾上Dynamic Web Module此时将能改为3.0,下方会出现进一步配置的蓝色连接,点进去,切记修改Content directory(默认WebContent)为:src/main/webapp,并将Generate...勾选,单击OK
程序写的有点繁杂,但大体功能出来的! 效果图: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; /* * 空间名:TrafficLight * 功能:模拟交通灯 * 编写人:Doget * 编写日期:2017.10.14 */ namespace TrafficLig