package com.xj.hhjk.common.base;
public abstract class AbstractAction {
private static Logger LOG = LoggerFactory.getLogger(AbstractAction.class);
static String reg = "(?:')|(?:--)|(/\\*(?:.|[\\n\\r])*?\\*/)|" + "(\\b(select|update|and|or|delete|insert|trancate|char|into|substr|ascii|declare|exec|count|master|into|drop|execute)\\b)";
static Pattern sqlPattern = Pattern.compile(reg, Pattern.CASE_INSENSITIVE);
public final static String SUC = "S";
public final static String ERR = "E";
@ExceptionHandler
@ResponseBody
public String exception(HttpServletRequest request, Exception ex) {
StackTraceElement[] st = ex.getStackTrace();
String msg = ex.getMessage();
if (null == msg) {
for (StackTraceElement e : st) {