在.project这个文件有问题,在最后的natures中我自己建立的文件中没有下面红色的一行代码,把这行代码加入到自己新建的工程中,这个问题就解决了。
<natures>
<nature>com.genuitec.eclipse.hibernate.hibernatenature</nature>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>