mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix character bom error
This commit is contained in:
@@ -144,7 +144,7 @@ public class DruidDriver implements Driver, DruidDriverMBean {
|
||||
}
|
||||
|
||||
/**
|
||||
* �数定义�com.alibaba.druid.log.LogFilter=filter com.alibaba.druid.log.LogFilter.p1=prop-value
|
||||
* 参数定义: com.alibaba.druid.log.LogFilter=filter com.alibaba.druid.log.LogFilter.p1=prop-value
|
||||
* com.alibaba.druid.log.LogFilter.p2=prop-value
|
||||
*
|
||||
* @param url
|
||||
|
||||
@@ -33,9 +33,12 @@ import com.alibaba.druid.util.JdbcSqlStatUtils;
|
||||
import com.alibaba.druid.util.StringUtils;
|
||||
|
||||
/**
|
||||
* 监控相关的对外数�暴� *
|
||||
* 监控相关的对外数据暴露
|
||||
*
|
||||
* <pre>
|
||||
* 1. 为了支æŒ�jndiæ•°æ�®æº�本类内部调用druid相关对象å�‡éœ€è¦�å��å°„è°ƒç”?返回值也应该是Object,List<Object>,Map<String,Object>ç‰æ— 关于druid的类åž? * 2. 对外暴露的public方法都应该先调用init(),应该有更好的方å¼�,暂时没想åˆ? * </pre>
|
||||
* 1. 为了支持jndi数据源本类内部调用druid相关对象均需要反射调用,返回值也应该是Object,List<Object>,Map<String,Object>等无关于druid的类型
|
||||
* 2. 对外暴露的public方法都应该先调用init(),应该有更好的方式,暂时没想到
|
||||
* </pre>
|
||||
*
|
||||
* @author sandzhang<sandzhangtoo@gmail.com>
|
||||
*/
|
||||
|
||||
@@ -394,7 +394,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
|
||||
long current = executeSpanNanoMax.get();
|
||||
if (current < nanoSpan) {
|
||||
if (executeSpanNanoMax.compareAndSet(current, nanoSpan)) {
|
||||
// �航�銝滚�蝖殷�雿�糓蝏嘥之憭𡁏㺭���銝钅�隡𡁏迤蝖殷��扯��W�銝?稲�?
|
||||
// 可能不准确,但是绝大多数情况下都会正确,性能换取一致性
|
||||
executeNanoSpanMaxOccurTime = System.currentTimeMillis();
|
||||
|
||||
break;
|
||||
|
||||
@@ -19,7 +19,7 @@ public class ServletPathMatcher implements PatternMatcher {
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* three type: endsWithMatch(eg. /xxx*=/xxx/xyz), startsWithMatch(eg. *.xxx=abc.xxx), equals(eg. /xxx=/xxx)�
|
||||
* three type: endsWithMatch(eg. /xxx*=/xxx/xyz), startsWithMatch(eg. *.xxx=abc.xxx), equals(eg. /xxx=/xxx).
|
||||
* </p>
|
||||
* <b>Notice</b>: *xxx* will match *xxxyyyy. endsWithMatch first.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user