Problem Description
Exception in thread “main” java.lang.NoClassDefFoundError: com/baomidou/mybatisplus/core/toolkit/StringUtils
at com.baomidou.mybatisplus.generator.config.DataSourceConfig B u i l d e r . < i n i t > ( D a t a S o u r c e C o n f i g . j a v a : 286 ) a t c o m . b a o m i d o u . m y b a t i s p l u s . g e n e r a t o r . F a s t A u t o G e n e r a t o r . c r e a t e ( F a s t A u t o G e n e r a t o r . j a v a : 81 ) a t c o m . s h u y i x i a o . e x p o r t e x c e l . t o o l . M y F a s t A u t o G e n e r a t o r . m a i n ( M y F a s t A u t o G e n e r a t o r . j a v a : 16 ) C a u s e d b y : j a v a . l a n g . C l a s s N o t F o u n d E x c e p t i o n : c o m . b a o m i d o u . m y b a t i s p l u s . c o r e . t o o l k i t . S t r i n g U t i l s a t j a v a . n e t . U R L C l a s s L o a d e r . f i n d C l a s s ( U R L C l a s s L o a d e r . j a v a : 381 ) a t j a v a . l a n g . C l a s s L o a d e r . l o a d C l a s s ( C l a s s L o a d e r . j a v a : 424 ) a t s u n . m i s c . L a u n c h e r Builder.<init>(DataSourceConfig.java:286) at com.baomidou.mybatisplus.generator.FastAutoGenerator.create(FastAutoGenerator.java:81) at com.shuyixiao.exportexcel.tool.MyFastAutoGenerator.main(MyFastAutoGenerator.java:16) Caused by: java.lang.ClassNotFoundException: com.baomidou.mybatisplus.core.toolkit.StringUtils at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher Builder.<init>(DataSourceConfig.java:286)atcom.baomidou.mybatisplus.generator.FastAutoGenerator.create(FastAutoGenerator.java:81)atcom.shuyixiao.exportexcel.tool.MyFastAutoGenerator.main(MyFastAutoGenerator.java:16)Causedby:java.lang.ClassNotFoundException:com.baomidou.mybatisplus.core.toolkit.StringUtilsatjava.net.URLClassLoader.findClass(URLClassLoader.java:381)atjava.lang.ClassLoader.loadClass(ClassLoader.java:424)atsun.misc.LauncherAppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 3 more
Solution
Just rebuild a project and do the same thing again. . . . .