【已解决】xml映射找不到类名java.lang.ClassNotFoundException

 

 

 XMLUtil文件里的Class.forName 参数要写相对于项目根目录的绝对路径,除了类名要加上对应的包路径!

原文地址:https://www.cnblogs.com/rainbow-1/p/15327813.html