tags: spring cloud spring boot
Bootstrap.properties cannot be dynamically modified and solve: solve:
You need to add Spring-Cloud-Starter-Bootstrap coordinates
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
NACOS configuration center principle analysis Configuration Type: Spring Cloud Alibaba Nacos Config currently provides three configuration capabilities that are related to NACOS. A: The configuration ...
In the multi-environment development of micro-service, use NACOS configuration, from development, testing, to deployment, can bring great convenience. In general, a company has multiple projects, a pr...
NACOS dynamic refresh configuration Version configuration NACOS configuration...
Yesterday, OpenFeign achieved remote calls, continue today Dynamic configuration with NACOS as a configuration center It has been introduced above, directly putting the official Demo However, pay atte...
What is nacos The full English name of Dynamic Naming and Configuration Service, NA is Naming/NameServer, as the registration center, CO is configuration, as the registration center. Service means tha...
Recently, Nacos, Apollo as the configuration center, record it. The premise is that the NACOS environment has been set up. We first set up tests by ourselves, and then let's build maintenance, so just...
1 First, add the @RefreshScrope annotation to the controller layer code; 2. Add a bootstrap.yml configuration file to the configuration file Configure the IP of nacos inside (the IP must be in this co...
premise: No need to restart the project, dynamically configure the configuration file first step Add @RefreshScope dynamically refresh the annotation at the use Example Step 2 Data Id: Corresponding s...
You need to install before using NACOS, there are many tutorials on the Internet. NACOS provides similarSpringCloud CONFIGConfigure the center function to realize dynamic configuration Dynamic Configu...
It is well known that SpringBoot can use timed tasks through @Scheduled, but we need to dynamically export reports regularly. What can we do? Of course, there are many task schedulers on the market th...