-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#65 Add some MySQL documentation #87
Conversation
README.md
Outdated
Note that whenever the database type is changed, the data-access.properties file needs to be updated and the mysql-connector-java artifact from the pom.xml needs to be uncommented. | ||
In its default configuration, Petclinic uses an in-memory database (HSQLDB) which gets populated at startup with data. | ||
A similar setup is provided for MySql in case a persistent database configuration is needed. | ||
Dependency for Connector/J, the MySQL JDBC driver is already included in the `dpom.xml` files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: dpom -> pom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix
README.md
Outdated
### Use the Spring 'mysql' profile | ||
|
||
To use a MySQL database, you have to start 3 microservices (`visits-service`, `customers-service` and `vets-services`) | ||
with the `mysql` Spring profile. Add the `--spring.profiles.active=mysql`` as programm argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`` -> `
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix. Thanks for the review.
* spring-petclinic#65 Add some MySQL documentation * spring-petclinic#65 Add some MySQL documentation : fixing typo
Remove some old txt files and put all the documentation into the readme.md
This PR required the changes spring-petclinic/spring-petclinic-microservices-config@0361c87 into the Config Repository.
A spring
mysql
profile has been added.On my laptop, MySQL use is working when I start microservices at command line or through my IDE.
With Docker, the connection with the jdbc:mysql://localhost:3306/petclinic?useSSL=false fails. I suppose
localhost
is not known by docker. Maybe we have to add an optional mysql database into the docker-compose file.