摘要: 为了更加方便调试sql语句,需要显示mybatis的sql语句。 网络上的一般方式都是通过log4j来实现,但是很多都有问题。 经过实验,以下代码能够保持正常:(只显示mybatis的sql语句的debug语句,其他的debug不显示) log4j.rootLogger = DEBUG,CONSOLE,LogFile,ErrorFile #注意这里需要改... 阅读全文
posted @ 2015-02-26 14:41 正正杂说 阅读(1354) 评论(0) 推荐(0) 编辑
摘要: 最近在实验Spring的时候遇到了一个问题: SEVERE: Servlet.service() for servlet [DispatcherServlet] in context with path [/ExtProjectDemo] threw exception [Request processing failed; nested exception is org.sprin... 阅读全文
posted @ 2015-02-26 11:32 正正杂说 阅读(1345) 评论(0) 推荐(0) 编辑