java.lang.ClassNotFoundException: net.sf.jsqlparser.expression.Function解决方法

x33g5p2x  于2022-07-26 转载在 Java  
字(0.8k)|赞(0)|评价(0)|浏览(339)

【现象】

2022-07-25 11:59:51.707 [http-nio-7006-exec-3] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - [log,175] - Servlet.service() for servlet [dispatcherServlet] in context with path [/resource] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: net/sf/jsqlparser/expression/Function] with root cause
java.lang.ClassNotFoundException: net.sf.jsqlparser.expression.Function
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

【解决方法】pom.xml文件中添加如下代码

<dependency>
			<groupId>com.github.jsqlparser</groupId>
			<artifactId>jsqlparser</artifactId>
			<version>1.1</version>
		</dependency>

相关文章