Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created
仔细研究了堆栈,debug,发现堆栈入口是某个static 属性示例化时引入getLogger导致错误的.
故直接在static{ 把对应的方法mock掉 }
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created
仔细研究了堆栈,debug,发现堆栈入口是某个static 属性示例化时引入getLogger导致错误的.
故直接在static{ 把对应的方法mock掉 }