当前位置:网站首页>"Configuration" is a double-edged sword, it will take you to understand various configuration methods
"Configuration" is a double-edged sword, it will take you to understand various configuration methods
2022-08-05 01:38:00 【Yi Xiaojun】
What is configuration
Many people can't tell the difference between configuration and configuration management, but they are completely different concepts.
Configuration management: It is a series of measures to control and standardize software products and their development process and life cycle through technical or administrative means.Its goal is to record the evolution process of software products and ensure that software developers can obtain accurate product configuration information at all stages of the software life cycle.
Configuration: Refers to configurable variables that are independent of the program, but have an effect on the program.That is to say, the same code will produce different results under different configurations.
From the above definition, you can see that configuration and configuration management are fundamentally different: configuration management serves the software development process, while configuration serves the program itself.
As a programmer, you often have to face different operating environments during development: development environment, test environment, production environment, intranet environment, extranet environment, etc.Different environments generally have different related configurations, such as data source configuration, log file configuration, and some basic configurations during software running.
In addition, you will also encounter some business and logical configurations.For example, different billing logic is adopted for different regions, and the billing logic needs to be adjusted at any time according to the needs of these regions.
If we hard-code all this information in the code, the result is that the code needs to be modified every time the environment is different or the business logic is adjusted.If the code is modified one day, it needs a complete test, so the cost of the change will be huge.
As a result, we tend to address these issues through "configurations".
However, the "configuration" itself is very particular.At what stage to configure and what means to use for configuration will directly affect the effect of continuous delivery.
Then, I will talk to you about the various configuration methods in detail.
build-time configuration
Taking Maven as an example, profiles are required to achieve build portability across multiple environments.A profile is an optional set of configurations that can be used to set or override configuration defaults.Build portability can be achieved by activating different profiles in different environments.We can look at a simple
边栏推荐
猜你喜欢

4. PCIe interface timing

If capturable=False, state_steps should not be CUDA tensors

LiveVideoStackCon 2022 上海站明日开幕!

【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍

LiveVideoStackCon 2022 Shanghai Station opens tomorrow!

深度学习训练前快速批量修改数据集中的图片名

快速批量修改VOC格式数据集标签的文件名,即快速批量修改.xml文件名

tcp中的三次握手与四次挥手
![[GYCTF2020]EasyThinking](/img/40/973411c69d1e4766d22f6a4a7c7c01.png)
[GYCTF2020]EasyThinking

测试工作这么难找吗?今年32,失业2个月,大龄测试工程师接下来该拿什么养家?
随机推荐
Opencv——视频跳帧处理
ORA-00604 ORA-02429
详细全面的postman接口测试实战教程
动态规划/背包问题总结/小结——01背包、完全背包
3. pcie.v 文件
码率vs.分辨率,哪一个更重要?
source program in assembly language
JVM类加载简介
XMjs跨域问题解决
Residential water problems
超越YOLO5-Face | YOLO-FaceV2正式开源Trick+学术点拉满
Exploding the circle of friends, Alibaba produced billion-level concurrent design quick notes are too fragrant
IJCAI2022 | DictBert:采用对比学习的字典描述知识增强的预训练语言模型
(十七)51单片机——AD/DA转换
居民用水问题
EBS利用虚拟列及hint 提示优化sql案例一则
ExcelPatternTool: Excel table-database mutual import tool
VOC格式数据集转COCO格式数据集
day14--postman接口测试
Kubernetes 网络入门