diff --git a/pom.xml b/pom.xml index 23f90d4da..17be71fad 100644 --- a/pom.xml +++ b/pom.xml @@ -210,13 +210,19 @@ - + + mysql + mysql-connector-java + ${mysql.version} + + diff --git a/src/main/resources/spring/data-access.properties b/src/main/resources/spring/data-access.properties index c1cc3cefd..4bf29ae40 100644 --- a/src/main/resources/spring/data-access.properties +++ b/src/main/resources/spring/data-access.properties @@ -7,35 +7,35 @@ #------------------------------------------------------------------------------- # HSQL Settings -jdbc.driverClassName=org.hsqldb.jdbcDriver -jdbc.url=jdbc:hsqldb:mem:petclinic -jdbc.username=sa -jdbc.password= +#jdbc.driverClassName=org.hsqldb.jdbcDriver +#jdbc.url=jdbc:hsqldb:mem:petclinic +#jdbc.username=sa +#jdbc.password= # Properties that control the population of schema and data for a new data source -jdbc.initLocation=classpath:db/hsqldb/initDB.sql -jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql +#jdbc.initLocation=classpath:db/hsqldb/initDB.sql +#jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql # Property that determines which database to use with an AbstractJpaVendorAdapter -jpa.database=HSQL +#jpa.database=HSQL jpa.showSql=true #------------------------------------------------------------------------------- # MySQL Settings -#jdbc.driverClassName=com.mysql.jdbc.Driver -#jdbc.url=jdbc:mysql://localhost:3306/petclinic -#jdbc.username=root -#jdbc.password= +jdbc.driverClassName=com.mysql.jdbc.Driver +jdbc.url=jdbc:mysql://115.29.227.156:3306/petclinic +jdbc.username=root +jdbc.password=Yang # Properties that control the population of schema and data for a new data source -#jdbc.initLocation=classpath:db/mysql/initDB.sql -#jdbc.dataLocation=classpath:db/mysql/populateDB.sql +jdbc.initLocation=classpath:db/mysql/initDB.sql +jdbc.dataLocation=classpath:db/mysql/populateDB.sql # Property that determines which Hibernate dialect to use # (only applied with "applicationContext-hibernate.xml") -#hibernate.dialect=org.hibernate.dialect.MySQLDialect +hibernate.dialect=org.hibernate.dialect.MySQLDialect # Property that determines which database to use with an AbstractJpaVendorAdapter -#jpa.database=MYSQL +jpa.database=MYSQL