Intellij应该是java最好的IDE了,在intellij中,执行javase程序,需要有main函数,然后右键类,或者在菜单中run即可
对于web程序,在run菜单下的edit configuration中,在templates中拉到tomcat server,打开local
配置applicaiton server,点击configuration,选择tomcat的安装目录
在delpoyment中,点击+号,点击Atrifact,即可添加当前web工程到tomcat服务器上
在底下的application context中把/web1_war_exploded,把war_exploded去掉,这样在浏览器中访问时会简单点
如果jsp文件和类文件不随着访问时修改而更新,那么可以在On frame deactivation下拉选择update classes and resource,即可修改jsp后,立刻会反映在浏览器中