解决方法 : 将Configuration config=new Configuration();改为Configuration config=new AnnotationConfiguration();