application.yml内常见的数据库driverClassName跟url

1.MySQL:

url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=UTF-8&useUnicode=true&useSSL=false
username: root
password: root
driver-class-name: com.mysql.jdbc.Driver

2.SqlServer

driverName :com.microsoft.sqlserver.jdbc.SQLServerDriver;//加载JDBC驱动 
username: root
password: root
    dbUrl:jdbc:sqlserver://localhost:1433; DatabaseName=sample"; //连接服务器和数据库sam

3.oracle

  url: jdbc:oracle:thin:@127.0.0.1:1521/orl
          username: root
          password: root
          driver-class-name: oracle.jdbc.driver.OracleDriver

你可能感兴趣的:(application.yml内常见的数据库driverClassName跟url)