M
M
mr_serg772017-10-23 03:04:35
Java
mr_serg77, 2017-10-23 03:04:35

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

3 answer(s)
L
LS Timer, 2017-10-23
@mr_serg77

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)

T
tapokshot, 2017-10-24
@tapokshot

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.

M
MaxLich, 2017-10-23
@MaxLich

I also asked this question, but so far I haven’t really dug in this direction. So far I have found a course on Stepik, but have not yet passed it: a course on creating a web application in Java

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question