0

I create a simple Spring Boot application. Running the app shows a JSON employee table in the browser, but when I check MySQL database with the command-line or MySQL Work-bench, a table employee table is generated, but no content.

Running the app from IntelliJ doesn't give me any error:

enter image description here

Take a look at my code on github: demo

1
  • did you write the save method? Commented Apr 8, 2022 at 11:51

1 Answer 1

1

You have only static data you are not using Jpa method for save that's why it's not saving in database table.

Sign up to request clarification or add additional context in comments.

1 Comment

Thx for pointing me in the right direction. I found a create article giving a short and simple to understand example: javatechonline.com/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.