Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Disconf (1): problems encountered in using the client

Shulou Source: shulou.com Published: 2022-06-03 06:22:51 11月23日 Update

At present, the project includes two modules: client-side disconf-Client and management-side disconf-Web. Currently, all module codes are implemented in Java. Record the problems encountered in the client configuration below:

1. Jar conflict

Com.baidu.disconf

Disconf-client

2.6.36

When the client is introduced, there will be a lot of jar version conflicts in the project. At this time, the jar in the client should be excluded and only the jar in the project should be used.

Com.baidu.disconf

Disconf-client

2.6.36

Org.springframework

Spring-beans

2. It is better to have a common module in the project. Just refer to the client in the common module, and other modules refer to the client module.

3, when the project starts, the client module should be initialized first so that the configuration file downloaded from the server can be loaded when spring is started, otherwise the configuration file will not be found and the file will not be found.

4. Plan the configuration file according to your own needs, for example, if each project has a common configuration file, establish a common project module; if there is no public configuration file, configure some configuration files for each project, and the server side changes. Pull the updated configuration file accordingly.

Tags: Module project configuration client client file time problem conflict service two code best version or requirements time update management planning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno MySQL Docker Huawei