-
Notifications
You must be signed in to change notification settings - Fork 1.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
auto create tables mysql #81
Comments
@lastlink thanks for sharing your code! |
Linked this in README. |
thanks |
Description: Field userRepository in org.zerhusen.security.service.JwtUserDetailsService required a bean named 'entityManagerFactory' that could not be found. Action: Consider defining a bean named 'entityManagerFactory' in your configuration. |
Can you help me out ,i am unable to run demo |
no comments replys |
I did everything like you told. But i was got an error.
|
this is a duplicate of the closed issue [#74]
This is how to auto create the tables using https://flywaydb.org/. I figured it out using https://www.callicoder.com/spring-boot-flyway-database-migration-example/.
Basically
Add this dependency to the pom.xml
mkdir -p src/main/resources/db/migration
touch src/main/resources/db/migration/V1__init.sql
place this text in there
Don't forget to update application.properties with the mysql credentials
Then run
mvn spring-boot:run
I suppose we could create a separate branch for mysql support to not conflict w/ the h2 memory database.
The text was updated successfully, but these errors were encountered: