2

How to connect Tomcat9 to a MySQL database and access the database in eclipse using Vaadin14? I already pasted the mysql connector in the tomcat\lib directory. Is there anything else to do/change?

Afterwards i created a ui that contains a few text fields and a java class car with some attributes and the corresponding getters/setters. I bound the text fields to the attributes using a binder. In my database there is also a table car with the same attributes and some entries. So how do i connect the database to my project in order to show one of the entries in my text fields and create a new entry? Sorry if this is basic java/vaadin, but i'm quite new to databases.

1
  • I know how to show create/show an entry, just want to know how to get a connection to the database. Commented Oct 10, 2019 at 5:31

1 Answer 1

3

So how do i connect the database to my project in order to show one of the entries in my text fields and create a new entry

Some other useful links on topic:

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

Comments

Your Answer

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