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.

  • I know how to show create/show an entry, just want to know how to get a connection to the database. –  Oct 10 '19 at 05:31

1 Answers1

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:

anasmi
  • 2,562
  • 1
  • 13
  • 25