diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c1a7ac2ea582d66dcaf86b1df507a55267d1ad3a..3562d7d0320e9a73b1e98255f64c94a8d9f5095b 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -17,7 +17,8 @@ management.contextPath=/manage # Logging logging.level.org.springframework=INFO -logging.level.org.springframework.web=DEBUG +# logging.level.org.springframework.web=DEBUG +# logging.level.org.springframework.context.annotation=TRACE # Active Spring profiles spring.profiles.active=production diff --git a/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt b/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt index 251562ebcd04bb56798aa3f89a18be5495b32407..6b3014b1654bd72c971b5ec9aada4cd7ea449c83 100644 --- a/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt +++ b/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt @@ -4,21 +4,16 @@ @author Sam Brannen @author Costin Leau +@author Dave Syer -------------------------------------------------------------------------------- 1) Download and install the MySQL database (e.g., MySQL Community Server 5.1.x), which can be found here: http://dev.mysql.com/downloads/ -2) Download Connector/J, the MySQL JDBC driver (e.g., Connector/J 5.1.x), which - can be found here: http://dev.mysql.com/downloads/connector/j/ - Copy the Connector/J JAR file (e.g., mysql-connector-java-5.1.5-bin.jar) into - the db/mysql directory. Alternatively, uncomment the mysql-connector from the - Petclinic pom. +2) Add the MySQL JDBC driver to your classpath. -3) Create the PetClinic database and user by executing the "db/mysql/initDB.sql" - script. +3) Set "database=mysql" in "application.properties" -4) Open "src/main/resources/spring/data-access.properties"; comment out all properties in the - "HSQL Settings" section; uncomment all properties in the "MySQL Settings" - section. +4) Create the PetClinic database and user by executing the "db/mysql/{schema,data}.sql" + scripts (or set "spring.datasource.initialize=true" the first time you run the app.