I am new to Java REST, and I would like to create โsimpleโ REST services that query the database and return some JSON information.
I would like to use JDBC DB access, without JPA.
When working with servlets, I configure the server data source, and in my servlets in the "init ()" method I store a link to the data source and each request creates a connection.
What should I do for REST services?
Thanks in advance.
source share