Answer the question
In order to leave comments, you need to log in
How to write REST API in Java?
Can you please tell me how to write WEB servers in Java?
You need to write a small API (authorization, working with the database).
I haven't really decided on the DB yet.
The choice is so wide that I really do not know what to take.
Tell me, according to modern practices, which technologies to use for minimum loads, maximum efficiency. How is it unfolding?
ps:
Don't kick too hard, it's not banned in Google. I just haven't written WEB before.
I tried Netty, but it was not clear how to deploy the application on the server.
I also felt how to work with Tomcat.
Need a couple of tips from more experienced people.
Answer the question
In order to leave comments, you need to log in
1 Maven project (for ease of connecting libraries)
2 Spring (Convenient and extensible framework)
3 Hibernate (Almost standard for JAVA databases)
4 Apache Tomcat
5 MySQL, Oracle at least h2 (the main thing here is not to code shit. If you want to change the database in Hibernate, a couple of trifles )
you can download the finished project from git (maven-spring-hibernate)
The fastest thing to do is to do everything on Spring Boot, (instead of deploying to tomcat, everyone will climb with one button),
and Postgres.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question