A Mirror of Spring's PetClinic
Find a file
2020-10-13 19:44:11 -04:00
.mvn/wrapper Upgrade to Maven 3.6.3 and Maven Wrapper 0.5.6 2020-06-13 14:02:26 +01:00
.vscode Add ignores for vscode 2018-02-21 09:51:59 +00:00
src another attempt at mysql properties 2020-10-13 18:38:25 -04:00
.editorconfig Change EditorConfig to reflect some files are indented with 2 spaces 2020-06-13 14:03:04 +01:00
.gitignore Update to latest Boot and add some gitignores 2019-03-11 10:16:57 +00:00
.travis.yml Attempt to fix travis build by hardcoding Ubuntu dist 2019-06-21 12:27:16 +01:00
clean.sh new read and clean script 2020-10-13 18:03:24 -04:00
docker-compose.yml updated compose file 2020-10-13 17:31:33 -04:00
mvnw Upgrade to Maven 3.6.3 and Maven Wrapper 0.5.6 2020-06-13 14:02:26 +01:00
mvnw.cmd Upgrade to Maven 3.6.3 and Maven Wrapper 0.5.6 2020-06-13 14:02:26 +01:00
pom.xml Restore version to 2.3.0.BUILD-SNAPSHOT 2020-08-27 15:05:30 +02:00
readme.md adding screenshot 2020-10-13 19:44:11 -04:00

mvn package

docker-compose up

java -Dspring.profiles.active=mysql -jar target/spring-petclinic-2.3.0.BUILD-SNAPSHOT.jar 

docker exec -it spring-petclinic_mysql_1 mysql -upetclinic -ppetclinic

show databases;
use petclinic;
show tables;

+---------------------+
| Tables_in_petclinic |
+---------------------+
| owners              |
| pets                |
| specialties         |
| types               |
| vet_specialties     |
| vets                |
| visits              |
+---------------------+
7 rows in set (0.00 sec)

select * from petclinic.owners;
+----+------------+-----------+-----------------------+-------------+------------+
| id | first_name | last_name | address               | city        | telephone  |
+----+------------+-----------+-----------------------+-------------+------------+
|  1 | George     | Franklin  | 110 W. Liberty St.    | Madison     | 6085551023 |
|  2 | Betty      | Davis     | 638 Cardinal Ave.     | Sun Prairie | 6085551749 |
|  3 | Eduardo    | Rodriquez | 2693 Commerce St.     | McFarland   | 6085558763 |
|  4 | Harold     | Davis     | 563 Friendly St.      | Windsor     | 6085553198 |
|  5 | Peter      | McTavish  | 2387 S. Fair Way      | Madison     | 6085552765 |
|  6 | Jean       | Coleman   | 105 N. Lake St.       | Monona      | 6085552654 |
|  7 | Jeff       | Black     | 1450 Oak Blvd.        | Monona      | 6085555387 |
|  8 | Maria      | Escobito  | 345 Maple St.         | Madison     | 6085557683 |
|  9 | David      | Schroeder | 2749 Blackhawk Trail  | Madison     | 6085559435 |
| 10 | Carlos     | Estaban   | 2335 Independence La. | Waunakee    | 6085555487 |
| 11 | Burr       | Sutter    | 123 ABC Lane          | Wonderland  | 5555555555 |
| 12 | test       | test      | test                  | test        | 1231231321 |
+----+------------+-----------+-----------------------+-------------+------------+
12 rows in set (0.00 sec)


http://localhost:8080

Screenshot