Spring cloud Nacos and feign report errors: Java lang.IllegalStateException: No Feign Client for loadBalancing defined
Problem description
Recently, during the process of using the latest version of nacos and feign, an error was encountered during startup:
Caused by: java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalancer?
Puzzled, the previous version of spring cloud did ...
Posted by lisawebs on Tue, 08 Mar 2022 20:32:23 +0100
SSM integration configuration
1. Guide Package
Spring related packages
Spring MVC related (core related packages will be imported together)<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.2 ...
Posted by mobtex on Tue, 08 Mar 2022 15:52:52 +0100
[destruction of beans] of [spring source code series]
The 41st national professional ice sculpture competition with the theme of "Winter Olympic light, colorful ice lanterns" entered the second day in the ice city of Harbin. 60 ice sculpture experts launched a fierce competitive competition in the Harbin Ice Lantern Art Park.
Ice sculpture art
1. General
Bean destruction is the last ste ...
Posted by pwicks on Tue, 08 Mar 2022 13:04:27 +0100
@Usage and examples of Async
@Usage and examples of Async annotations
background
In general, the method calls in Java are synchronous calls. For example, the B method is invoked in the A method. After the B method is invoked by A, the B method must wait for execution and return, and the A method can continue to execute. A problem that is easy to occur is that if m ...
Posted by kenyabob on Tue, 08 Mar 2022 13:00:29 +0100
Spring transaction management
1. What is a business?
In a series of operations on the database, ensure that they succeed or fail at the same time, and there can be no partial success or partial failure. This series of operations is called database transactions.
2. Characteristics of transactions
Atomicity: refers to that a transaction is an inseparable work unit, ...
Posted by djsl on Tue, 08 Mar 2022 10:00:31 +0100
SpringBoot Admin2.0 integrated Java diagnostic artifact Arthas practice
Author | sparrow source| Alibaba cloud official account
This article is from Arthas. It was submitted in March 2021. The way of participation in the award-winning essay in April can be seen at the end of the article.
The project initially used Arthas for two purposes:
Through arthas, we can solve the problem of realizing the performance ...
Posted by tomcurcuruto on Tue, 08 Mar 2022 07:28:25 +0100
[track of HBase] Apache Phoenix 5.1.2 is used in detail. Like MySQL, it uses SQL statements to operate HBase (Shell operation and SpringBoot+MyBatis integration)
0. Front
The previous article recorded the Shell operation and Java API operation of HBase, but the operation process is still cumbersome [track of HBase] (2) use HBase command and Java API to operate HBase (including complex query - filter and HBase tool class)
It would be nice if you could write SQL operation database like MySQL, and ...
Posted by clarket on Tue, 08 Mar 2022 06:42:16 +0100
Transactional transaction based on XML - spring learning 07
Transaction management in Spring
Before understanding the business: say a lie and withdraw money, such as you go ATM There are generally two steps to withdraw 1000 yuan by machine: first, enter the password amount and deduct 1000 yuan from the bank card; then ATM Pay 1000 yuan. Both steps must be performed or neither. If the bank card deducts ...
Posted by leeandrew on Tue, 08 Mar 2022 04:03:38 +0100
Spring cloud 2020 - spring cloud stream message driven (note)
Previous: SpringCloud 2020-SpringCloud config distributed configuration center (note)
1. Message driven overview
1.1 INTRODUCTION
Shield the differences between the underlying message middleware, reduce the switching version, and unify the programming model of message Official website: https://spring.io/projects/spring-cloud-stream h ...
Posted by christiank on Tue, 08 Mar 2022 03:52:09 +0100
Detailed construction steps of Spring Boot project? java version of SpringCloud+SpringBoot+uniapp+vue b2b2c microservice mall microservice e-commerce live broadcast with goods source code
In Spring Tools 4 for Eclipse, select File - > New - > Maven Project, and then add relevant information in the interface as shown in the figure.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.6.RELEASE</version&g ...
Posted by webent on Tue, 08 Mar 2022 03:15:37 +0100