1、首先打开Edit Configurations

或者

2、添加的项目一定是war: exploded,而不是war

3、server这边,On 'Update' action选Redeploy,On frame deactivation选Update classes and resources