'The test case failed after introducing Nacos

My test cases (the test directory) have a dedicated configuration file (application.yml) and use the H2 database, while the business code uses the business database. When I introduced the Nacos configuration center (bootstrap.properties) in the business code, my test cases all went wrong. I suspect that there is a problem with the priority when reading the configuration file, but I have not solved it. I am looking forward to your help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source