数据库连接字符串

System.db = mysql

##mysql
#mysql.datasource = org.springframework.jdbc.datasource.DriverManagerDataSource
mysql.datasource = org.apache.commons.dbcp.BasicDataSource
mysql.driver = org.gjt.mm.mysql.Driver
mysql.url = jdbc:mysql://localhost:3306/test_db
mysql.username = root
mysql.password = root

##db2jcc.jar and db2jcc_license_cu.jar
#db2.datasource = org.springframework.jdbc.datasource.DriverManagerDataSource
db2.datasource = org.apache.commons.dbcp.BasicDataSource
db2.driver = com.ibm.db2.jcc.DB2Driver
db2.url = jdbc:db2://localhost:50000/crm
db2.username = administrator
db2.password = system

##db2java.jar
#driver = COM.ibm.db2.jdbc.app.DB2Driver
#url = jdbc:db2:crm
#username = administrator
#password = system

#oracle.datasource = org.springframework.jdbc.datasource.DriverManagerDataSource
oracle.datasource = org.apache.commons.dbcp.BasicDataSource
oracle.driver = oracle.jdbc.driver.OracleDriver
oracle.url = jdbc:oracle:thin:@localhost:1521:appdb
#oracle.username = scott
#oracle.password = tiger
oracle.username = jack
oracle.password = jack

#mssql.datasource = org.springframework.jdbc.datasource.DriverManagerDataSource
mssql.datasource = org.apache.commons.dbcp.BasicDataSource
mssql.driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
##mssql.url = jdbc:sqlserver://localhost:1433;SelectMethod=cursor;DatabaseName=pubs
mssql.url = jdbc:sqlserver://localhost:1433;DatabaseName=pubs
mssql.username = sa
mssql.password = 123

#access.driver = sun.jdbc.odbc.JdbcOdbcDriver
#access.url = jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=c:/db1.mdb
#access.username = sa
#access.password = 123

#derby.datasource = org.springframework.jdbc.datasource.DriverManagerDataSource
derby.datasource = org.apache.commons.dbcp.BasicDataSource
derby.driver = org.apache.derby.jdbc.EmbeddedDriver
derby.url = jdbc:derby:c:\aa;create=true
derby.username = sa
derby.password = 123

你可能感兴趣的:(oracle,mysql,jdbc,db2,Derby)