当前位置:网站首页>"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.0(三)------数据仓库系统

软件测试技术之最有效的七大性能测试技术

Xunrui cms website cannot be displayed normally after relocation and server change

4. PCIe interface timing

Activity Recommendation | Kuaishou StreamLake Brand Launch Conference, witness together on August 10!

汇编语言之源程序

B站7月榜单丨飞瓜数据B站UP主排行榜发布!

内存取证系列1

tcp中的三次握手与四次挥手

面试汇总:为何大厂面试官总问 Framework 的底层原理?
随机推荐
sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
蓝牙Mesh系统开发五 ble mesh设备增加与移除
金九银十面试跳槽季;你准备好了吗?
MySQL3
Gartner Hype Cycle:超融合技术将在2年内到达“生产力成熟期”
linux(centOs7)部署mysql(8.0.20)数据库
JVM类加载简介
GCC:编译时库路径和运行时库路径
DDOS攻击真的是无解吗?不!
LiveVideoStackCon 2022 Shanghai Station opens tomorrow!
新来个技术总监,把DDD落地的那叫一个高级,服气
手把手基于YOLOv5定制实现FacePose之《YOLO结构解读、YOLO数据格式转换、YOLO过程修改》
Why is this problem reported when installing oracle11
torch.autograd.grad finds the second derivative
【PyQT5 绑定函数的传参】
第十一章 开关级建模
主库预警日志报错ORA-00270
CMS建站流程
3. pcie.v file
day14--postman接口测试