jdbc.properties
上传用户:dezhong
上传日期:2022-08-10
资源大小:167k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. # Properties file with JDBC and JPA settings.
  2. #
  3. # Applied by <context:property-placeholder location="jdbc.properties"/> from
  4. # various application context XML files (e.g., "applicationContext-*.xml").
  5. # Targeted at system administrators, to avoid touching the context XML files.
  6. #-------------------------------------------------------------------------------
  7. # Common Settings
  8. hibernate.generate_statistics=true
  9. hibernate.show_sql=true
  10. jpa.showSql=true
  11. #-------------------------------------------------------------------------------
  12. # HSQL Settings
  13. jdbc.driverClassName=org.hsqldb.jdbcDriver
  14. jdbc.url=jdbc:hsqldb:hsql://localhost:9001
  15. jdbc.username=sa
  16. jdbc.password=
  17. # Property that determines which Hibernate dialect to use
  18. # (only applied with "applicationContext-hibernate.xml")
  19. hibernate.dialect=org.hibernate.dialect.HSQLDialect
  20. # Property that determines which JPA DatabasePlatform to use with TopLink Essentials
  21. jpa.databasePlatform=org.springframework.samples.petclinic.toplink.EssentialsHSQLPlatformWithNativeSequence
  22. # Property that determines which database to use with an AbstractJpaVendorAdapter
  23. jpa.database=HSQL
  24. #-------------------------------------------------------------------------------
  25. # MySQL Settings
  26. #jdbc.driverClassName=com.mysql.jdbc.Driver
  27. #jdbc.url=jdbc:mysql://localhost:3306/petclinic
  28. #jdbc.username=pc
  29. #jdbc.password=pc
  30. # Property that determines which Hibernate dialect to use
  31. # (only applied with "applicationContext-hibernate.xml")
  32. #hibernate.dialect=org.hibernate.dialect.MySQLDialect
  33. # Property that determines which JPA DatabasePlatform to use with TopLink Essentials
  34. #jpa.databasePlatform=oracle.toplink.essentials.platform.database.MySQL4Platform
  35. # Property that determines which database to use with an AbstractJpaVendorAdapter
  36. #jpa.database=MYSQL