MySQL Database data source

Source: Internet
Author: User

A data source is a database or database server used by a database application. The data source, as its name implies, is the source of the data, the device or the original media that provides some of the required data. All information that establishes a database connection is stored in the data source. Just as you can find a file in the file system by specifying a file name, you can find the appropriate database connection by providing the correct data source name.
Mybatis-config.xml
Default= "Development" > <environment id= "Development" > <transactionmanager type= " JDBC "/> <datasource type=" Pooled "> <property name=" Driver "value=" ${driver} "/> < Property name= "url" value= "${url}"/> <property name= "username" value= "${username}"/> <property Name= "Password" value= "${password}"/> </dataSource> </environment> </ Environments>
Jdbc.properties
driver=com.mysql.jdbc.Driverjdbc_url=jdbc:mysql://${envi.dbhost}/gmall?usessl=true& SERVERTIMEZONE=UTCjdbc_user=rootjdbc_password=xxx

MySQL Database data source

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.