1.在系統環境變量中(System.getProperties())中查找key=javax.xml.parsers.DocumentBuilderFactory
2.如果1沒有找到,則找java.home\lib\jaxp.properties 文件,如果文件存在,在文件中查找key=javax.xml.parsers.DocumentBuilderFactory
3.如果2沒有找到,則在classpath中的所有的jar包中查找META-INF/services/javax.xml.parsers.DocumentBuilderFactory 文件
全都沒找到,則返回null