Docker deployment nacos reports No DataSource set exception

2023-11-04 16:07:12,865 ERROR Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘memoryMonitor’ defined in URL [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos- config-2.2.3.jar!/com/alibaba/nacos/config/server/monitor/MemoryMonitor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘asyncNotifyService’: Unsatisfied dependency expressed through field ‘dumpService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘externalDumpService’: Invocation of init method […]

Nacos remote call deployment

Nacos remote call deployment Nacos remote call deployment Preface Project preparation Project deployment and running Test Results Extra tips Nacos remote call deployment Foreword Purpose of writing this article: There are Nacos remote calling methods on the Internet, but the related articles found before basically have problems, so this article was compiled Nacos remote calling […]

SpringCloud Gateway+Nacos, how to dynamically implement 1000+ routing rules?

Environment: SpringBoot2.7.12 + SpringCloud 2021.0.7 + Spring Cloud Alibaba 2021.0.4.0 1. Introduction What is Gateway? Spring Cloud Gateway is part of the Spring Cloud ecosystem and is a gateway server built with technologies such as Spring Framework 5, Spring Boot 2, and Project Reactor. It is mainly used to provide routing, load balancing, security, current […]

[Nacos] How to specify the IP (external network IP) of a business instance to be injected into Nacos

Description of requirements Use Spring Cloud Alibaba to build microservices. The business instance uses the intranet IP to register to the Nacos server by default, so the request will not be successful when crossing a local area network. So how to solve it? Answer: Specify the external network IP to register on Nacos. The following […]

Summary of Nacos general questions

1. Nacos general questions What is Nacos Nacos is dedicated to helping you discover, configure and manage microservices. Nacos provides a simple and easy-to-use feature set to help you quickly implement dynamic service discovery, service configuration, service metadata and traffic management. For details, please refer to the Nacos official website. How does Nacos support multiple […]

Simplify local Feign calls based on Nacos

In daily work, OpenFeign is very commonly used as a calling component between microservices. The calling method of interfaces and annotations highlights simplicity, allowing us to implement interfaces between services without paying attention to internal details. transfer. However, after using it for a long time at work, I found that Feign also has some troubles […]

Microservice framework SpringcloudAlibaba+Nacos integrates RabbitMQ

The company currently uses the jeeplus cloud version, which does not have an integrated message queue. Here is a record of the integration process; this framework has the same structure as the microservice version of ruoyi, so you can get started quickly. 1. Project structure chart: The configuration class is made into a public module […]

Practical Chapter-Nacos Registration Center

1. Install and start Nacos I have already studied the Eureka registration center before, why do I need to learn the Nacos registration center. Reason: Nacos is a product of Alibaba and is now a component in SpringCloud. Compared with Eureka, it has richer functions and is more popular in China. nacos download link Link: […]

NACOS construction and related vulnerability recurrence

Table of Contents Building process problem appear Solve the problem Vulnerability recurrence Authentication Bypass Vulnerability (QVD-2023-6271) Vulnerability description Vulnerability information Vulnerability scope: Vulnerability recurrence Bug fixes Nacos permission authentication bypass (CVE-2021-29441) Vulnerability description Vulnerability scope Vulnerability recurrence Bug fixes information leakage Internal IP address leaked User list leaked Since different vulnerability recurrences require different versions […]