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>