Springboot屏蔽htmlunit多余日志

  • Post author:
  • Post category:其他


htmlunit老是报很多异常,干扰正常的日志判断,很烦人

2021-08-28 00:02:22.428  WARN 1986 --- [nio-8888-exec-2] c.g.htmlunit.IncorrectnessListenerImpl   : Obsolete content type encountered: 'application/x-javascript'.

解决方法是springboot yml配置com.gargoylesoftware: off

logging:
  level:
    root: info
    com:
      gargoylesoftware: off



版权声明:本文为qq_20786911原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。