Web. config database connection, web. config
Method 1: connectionsStrings
First configure the web. config file
The server indicates the database address, the local database can be represented by "." or "localhost", the database indicates the database name, the uid indicates the name of the database to log on to, and the pwd indicates the password to log on t
appdomain is started, ideally, the web system can be online for a long time (this was an expensive UNIX feature and was finally referred to by MS ).
Different versions of the same application Assembly run simultaneously. This is a big problem in the com era. Now, through appdomain, we have implemented the implementation of two different assembly versions in one process, which can achieve good compatibility.
Dynamically load some programs. For example, dynamically creating an appdomain to
Some of the data needs to be written to the configuration file. We will try to write to the configuration file. For example, often change the data, or user time as long as the changes to the configuration file can be used value, such as: IP address. Port number, MD5 add salt. Wait a minute. We can write these values to the Web. config file. To get this value on the WebForm.aspx.cs page, or another page.Note that the configuration is in the WebForm.asp
Save the data in the web. config configuration file, and how to obtain the data in the config configuration file, web. configconfig
Some data needs to be written to the configuration file. We should try to write it into the configuration file. For example, you can change the frequently changed data or change the configuration file to use a value, such as an IP address. Port Number, MD5 and salt. And so on.
The System. Configuration namespace in. Net provides perfect support for custom Configuration in web. config or app. config. Recently, some projects are still using custom xml files for program configuration, so you can't help writing an article about System custom configuration.
If you are familiar with custom configurations, ignore this article.
Let's take a look at a simple custom configuration.
Copy cod
DOS Command Net ConfigAction: Displays the currently running configurable service, or displays and modifies the settings for a service.Format: NET CONIFG service optionsParameters: (1) type net CONIFG without parameters to display a list of configurable services.(2) Services configured by the service through the Net CONIFG command (server or workstation).(3) Specific options for option services.Example: NET config workstation Note: Understand the conf
Configuration file (App. config file), configuration file app. config
1. configuration file Overview:The application configuration file is a standard XML file, and the XML tag and attribute are case sensitive. It can be changed as needed. developers can use the configuration file to change the settings without re-compiling the application. The configuration file's root node isConfiguration. We often access
Web. config configuration, web. config
Sometimes a global value can be set to the deleettings, which can be called through the following code.
String deptid = ConfigurationManager. receivettings ["DepartmentRootID"];
However, it is recommended to write it in connectionStrings.
Http://www.cnblogs.com/hakuci/archive/2008/04/18/1159693.html
Here is a description of appSettings and connectionStrings.
display the trace message.The optional Boolean property.The default value is false.
2. LocationConfiguration , system.web//This element is placed under 3. Configuration ExampleTrace enabled="True"Turn on application tracking localonly="True"// only local can see mostRecent="true" //Display the most recent application level trace output pageoutput="false" //Not at the end of the page to render trace Out, if rendered, then the above is the page code, the following is the tracking inform
Spring Cloud Learning-Configuration Center (config)
A brief introduction to Spring Cloud Config
Two write Config Server
Three write config Client
Four manually refresh the configuration using the Refresh Endpoint
Five Spring Config server works with
Resources: Https://cloud.spring.io/spring-cloud-static/spring-cloud-config/1.4.0.RELEASE/single/spring-cloud-config.htmlhttp://cloud.spring.io/spring-cloud-static/Camden.SR7/#_environment_repositoryGit Backend--git back end The default implementation of Environmentrespository uses the Git backend, which is handy for managing upgrade and environment checks and auditing changes.To change the location of the repository, you can set the "Spring.cloud.
I. OverviewSee Address: Https://cloud.spring.io/spring-cloud-static/Edgware.SR3/single/spring-cloud.html#_environment_repositoryFor example: git, svn, git-based local storage, local storage, VaultSecond, gitThe default implementation of Environmentrepository uses the Git backend. To change the location of the repository, you can set the "Spring.cloud.config.server.git.uri" configuration property (for example, in application.yml) in the configuration server.Benefits: Version auditing, distributed
Spring Cloud Config (configuration center)Hello everyone, have not written a technical blog for some time. Because of the work, it is difficult to allocate time. In recent years, with the rise of service, a number of services have emerged as a framework, such as Dubbo,thrift,spring-cloud. There are a lot of companies using Dubbo in China, Dubbo is also a prerequisite for Java programmers to interview, and its official documentation is very clear and u
Npi-config is a command line system Configuration Tool under our Nanopi-neo system that allows you to perform some initialization configuration of the system, including user passwords, system languages, time zones, Hostname, SSH switches, automatic login options, and more. You can enter at the command line by executing the following command:
sudo npi-config
The npi-con
CI framework source code reading notes 7 configuration management components Config. php, ciconfig. php
In a flexible and controllable Application, there will inevitably be a large number of controllable parameters (we call it configuration), for example, in the master configuration file of CI (here it refers to Application/Config. PHP file), there are multiple configurations:
$
1. Introduction The highly available distributed configuration Center, which is a microservices-ready configuration Center, is clustered to achieve high availability. Config-server and Config-client register with Eureka-server and Config-server multi-instance clustering deployment2. Retrofit Config-server1, we use the
Respect Original: Http://www.cnblogs.com/fish-li/archive/2011/12/18/2292037.html#_labelStart
Talk today about the various ways to read and write config files in. net. In this blog, I'll explain the read and write operations for various profiles. Because the content is more intuitive, so there is not too much empty truth, only real demo code, the purpose is only to reproduce the actual development of the various scenes. I hope you can enjoy it.
Usually
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.