java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonView

2023-05-19 09:43:11,110  WARN com.alibaba.nacos.client.security.SecurityProxy - [SecurityProxy] login failed, error: 
java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonView
	at com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.<clinit>(JacksonAnnotationIntrospector.java:37)
	at com.fasterxml.jackson.databind.ObjectMapper.<clinit>(ObjectMapper.java:357)
	at com.alibaba.nacos.common.utils.JacksonUtils.<clinit>(JacksonUtils.java:43)
	at com.alibaba.nacos.common.http.client.AbstractNacosRestTemplate.selectResponseHandler(AbstractNacosRestTemplate.java:77)
	at com.alibaba.nacos.common.http.client.NacosRestTemplate.execute(NacosRestTemplate.java:479)
	at com.alibaba.nacos.common.http.client.NacosRestTemplate.postForm(NacosRestTemplate.java:364)
	at com.alibaba.nacos.client.security.SecurityProxy.login(SecurityProxy.java:147)
	at com.alibaba.nacos.client.security.SecurityProxy.login(SecurityProxy.java:115)
	at com.alibaba.nacos.client.config.impl.ConfigTransportClient.start(ConfigTransportClient.java:244)
	at com.alibaba.nacos.client.config.impl.ClientWorker.<init>(ClientWorker.java:421)
	at com.alibaba.nacos.client.config.NacosConfigService.<init>(NacosConfigService.java:81)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.alibaba.nacos.api.config.ConfigFactory.createConfigService(ConfigFactory.java:43)
	at com.alibaba.nacos.api.NacosFactory.createConfigService(NacosFactory.java:44)
	at nacos.ConfigExample.main(ConfigExample.java:81)
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonView
	at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	... 18 more

==

https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-annotations</artifactId>
    <version>2.11.4</version>
</dependency>

https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.11.4/jackson-annotations-2.11.4.jar

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值