A
A
artshelom2017-01-14 15:33:40
Java
artshelom, 2017-01-14 15:33:40

What frameworks and libraries to use for writing a site?

Hello, I decided to write the server part of the site in java, the framework decided to use spring. Advise libraries convenient for writing. And reading for this
Thanks in advance!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Frozen Coder, 2017-01-14
@frozen_coder

Spring frameworks are mostly enough for the eyes + Hibernate as an JPA implementation. Use Spring Boot, Data, Security. Use Hibernate as a JPA implementation, annotations from there, and queries to the database through Spring Data repository interfaces, which is very simple and convenient. But, if you need a very complex, non-standard query and you don’t want to write pure SQL over the method in the repository (if it’s not clear now, then after reading the Spring Data docks it will become clear what we are talking about), then it will be possible to turn such queries through Hibernat’s Criteria.
To reduce the ballerplate code, Lombok is very convenient.
For the most part, everything is already in the standard libraries of Java itself. Use version 8 with its streams - beautiful and convenient.
And more like nothing like that is needed. It is convenient to build using gradle, but someone prefers maven.
Next, you have to look at the specific needs of the project.
Finally, about testing: JUnit is for unit testing, but I still advise you to master groovy at least a little and use the spock framework, and Geb for testing UI.
The best reading is the official documentation, and it is very good for both Spring (even in Russian) and Hibernate. There is also a well-known mkyong blog
https://www.mkyong.com/ - it has examples for almost all occasions for Java and so on.
From the Spring in action books, there are in Russian, but I don’t know how they are now keeping up with the versions, the original is better, of course.
Look at the toaster, there were already a lot of questions about sources, there are a lot, for example. What resources with articles, tutorials and topics on learning programming, technologies, frameworks do you know?
There are also articles on Habré.

R
Rou1997, 2017-01-14
@Rou1997

For convenient writing in the Spring library, I recommend the Yii2 library, though then it will turn out not in Spring, but in Yii2, and not even in Java, but in PHP, but it’s convenient for writing!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question