setProperty(String propertyName,String value)
引數說明:Configuration cfg = new Configuration() .setProperty("hibernate.dialect","org.hibernate.dialect.SQLServerDialect");
Configuration cfg = new Configuration() .setProperty("connection.username","sa") .setProperty("connection.password","111");