摘要: 最近学习Hiberante Annotations时遇到了该问题org.hibernate.MappingException: Unknown entity在baidu和googl上搜寻了 很久也没有找到适合我的解决方法,最后发现是import Entity类造成的(使用Eclipse自动提示导入的该包)importjavax.persistence.Id;importjavax.persistence.Table;importjavax.persistence.Transient;importorg.hibernate.annotations.Entity;//这是就出问题了哦@Entity 阅读全文
posted @ 2013-12-19 15:49 tvxqpurpleline 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 在程序中,可以以以下方式来使用 Log log = org.apache.commons.logging.LogFactory.LogFactory.getLog(yourClassName.class); log.debug("debug message -------------------"); log.info("info message ******************"); log.warn("warn message +++++++++++++++"); log.error("error msg====== 阅读全文
posted @ 2013-12-19 15:07 tvxqpurpleline 阅读(152) 评论(0) 推荐(0) 编辑