1、修改命名sql拦截器,把所有的命名sql进行拦截
修改配置文件,路径$\apps_config\default\config\handler-namedsql.xml
文件修改如下:
2、开发处理类(即打印sql的处理类)
开发org.gocom.abframe.nui.log.PrintNamingsqlHandler类,
修改配置文件,路径$\apps_config\default\config\handler-namedsql.xml
文件修改如下:
<?xml version="1.0"encoding="UTF-8"?>
<handlers>
<!--handlers that are added named sql-->
<!--
class:theclass name of the handler , mush implementcom.primeton.das.sql.impl.handler.INamedSqlHandler
matchName:the id of the matched named SQL
-->
<handler id="printsql"class="org.gocom.abframe.nui.log.PrintNamingsqlHandler">
<matchmatchName="*" isRegex="true"></match>
</handler>
</handlers>
2、开发处理类(即打印sql的处理类)
开发org.gocom.abframe.nui.log.PrintNamingsqlHandler类,
package org.gocom.abframe.nui.log;
import java.util.Iterator;
import java.util.List;
import ja