Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Disconf (1): problems encountered in using the client

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report