I need to reduce app startup time, so I get the flamegraph, it cast long time in mybatis xml load resource
So I create a thread pool to parse the xml, but its go wrong
when parse <includes> , it have NullPointerException when get child for index, I think the node will be operate child nodes by another thread, so I read source code, but maybe node will not be singleton?
so do you have some suggestions? and where will make node not safety？