如果你是Close Project然后双击打开项目,那么这篇文章可以帮你解决这个错误 1、右键项目 2、选择Close Project 3、再右键项目 4、选择Open Project 此时再在tomcat发布即可