在Eclipse中打开“project properties",点中"Project Facets",并选中 1、Dynamic web module 2、java 项目即可成为一个被WPT识别的web项目了。