Introduction
This issue will help you how to configure Spring Cloud Alibaba application(s) working on Nacos Server 1.2.0+ with authentication.
Prerequisites
Nacos Server 1.2.0+ enabing authentication feature [Guide]
Spring Cloud Alibaba 2.2.0.RELEASE using artifcats
com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery
com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-config
How to configure
Upgrading the nacos-client API
Upgrading the com.alibaba.nacos:nacos-client API into the dependencies of pom.xml
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-client</artifactId>
<version>1.2.1</version>
</dependency>
Adding the externalized properties
For Spring Cloud Alibaba Nacos Discovery
Adding folloing properties into application.prop