问题:
在关闭tomcat时:
Tomat报出一下异常:
ERROR [com.alibaba.druid.stat.DruidDataSourceStatManager] – unregister mbean errorjavax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStatat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean………解决方案:
修改Tomcat 下bin目录下的的 catalina.sh,:在# OS specific support. $var _must_ be set to either true or false.与cygwin=false之间
增加此句代码: JAVA_OPTS=”-Ddruid.registerToSysProperty=true”