Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动项目报错Caused by: java.lang.NoClassDefFoundError #298

Open
chinaitman opened this issue Sep 23, 2024 · 1 comment
Open

启动项目报错Caused by: java.lang.NoClassDefFoundError #298

chinaitman opened this issue Sep 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@chinaitman
Copy link

错误描述

springboot2.7.7
启动项目后报错如下:
Caused by: java.lang.NoClassDefFoundError: Lcom/wechat/pay/java/service/merchantexclusivecoupon/MerchantExclusiveCouponService;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.springframework.util.ReflectionUtils.getDeclaredFields(ReflectionUtils.java:738)
... 37 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.wechat.pay.java.service.merchantexclusivecoupon.MerchantExclusiveCouponService
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:359)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 41 common frames omitted

重现bug的步骤

启动springboot项目就报错找不到类

预期行为

是什么原因会出现ClassNotFoundException异常

导致错误的代码片段

No response

操作系统

windows11

Java 版本

Java 8

wechatpay-java 版本

0.2.14

其他信息

No response

@chinaitman chinaitman added the bug Something isn't working label Sep 23, 2024
@zhk121314
Copy link

解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants