总是出现这个问题:求解决方案。 Exception in thread "main" java.lang.ClassCastException: org.hibernate.impl.SessionFactoryImpl cannot be cast to com.ebupt ...
我今天尝试着把1。4版本升级到1。6版本, 原来用了很多Enumeration enum, 但是enum在1.6里是关键字,所以我全部改成Enumeration enumer.然后运行出错了。
Generics make your code more flexible and easier to read, and they help you avoid ClassCastExceptions at runtime. Get started with this introduction to using generics with the Java Collections ...