mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 21:50:43 +08:00
Improve startup speed
This commit is contained in:
@ -199,7 +199,7 @@ public class Dbutils {
|
||||
Enumeration<JarEntry> entries = jarFile.entries();
|
||||
while (entries.hasMoreElements()) {
|
||||
JarEntry jarEntry = entries.nextElement();
|
||||
if (jarEntry.getName().endsWith(".xml")) {
|
||||
if (jarEntry.getName().endsWith("Mapper.xml")) {
|
||||
InputStream in = jarFile.getInputStream(jarEntry);
|
||||
XMLMapperBuilder xmlMapperBuilder = new XMLMapperBuilder(in, configuration, jarEntry.getName(), configuration.getSqlFragments());
|
||||
xmlMapperBuilder.parse();
|
||||
|
Reference in New Issue
Block a user