Hello. In general, I want to get acquainted with the Spring Framework MVC .. I have knowledge of Java 8, HTML / CSS, XML. The problem is that my project structure is not the same as in the lessons. I want to use pure annotations for configuration, but of course XML, where there is no way without it (configuring Maven). I was told to download Maven, Tomcat. All downloaded, set, variables prescribed and in the settings IntelliJ IDEA 15.1 put the path to Maven. Spring MVC downloaded as a dependency, (New -> Project ... -> Spring -> Spring MVC). Created .. As a result, I have the following project structure:

enter image description here

No pom.xml ... I do not understand why, because everything is connected and indicated. Well, it is fixable through the Add Framework Support -> Maven, and pom.xml is added. But the content is very different from that in the Spring lessons. I tried these lessons: https://www.youtube.com/watch?v=YN66kDMjnYM , like without configuring Spring via XML, but for me everything is difficult .. For me it’s like a dark forest, the person is already on the finished project shows, and I have not even really created it. For two days now I have been sitting and I can’t do Hello World, either XML is everywhere, or something is wrong with me in the structure (yes, for the most part these are problems with my hands, probably). What I want:

  1. What's up with this maven? Where is pox.xml automatically created?
  2. Can someone please just throw off the Spring MVC web application (typical Hello World) to the newest standards .. Well, since they are writing to Spring MVC now ..
  3. There are some lessons, even if only in English (tutorials), where everything is on annotations and, as if to say, "modern", in the tone that is now popular and in demand. Share please.
  4. I have minimal knowledge of web. Did I understand correctly: At Spring MVC, we are writing a web application (server), which in turn works using Java servlets. Then the page on HTML / CSS with the help of JavaScript refers to our web application (server). At Spring MVC itself, we do not write the page directly (HTML / CSS) or we do it, otherwise what is JSP (and this kind of HTML). Shed light here.

Questions are not very literate, sometimes stupid, I apologize right away.

    1 answer 1

    1. He will not be there. In order for it to be there, you need to create a maven-project with the archetype of spring-mvc (the name may be different).
    2. The first result of a search engine for spring mvc annotation example
    3. These lessons are called official documentation . But it is big, so you can try it .
    4. It seems yes, but no. First of all, the browser comes with a GET request to the server, asking them to give it a page. Here you can give a static page (HTML + javascript), and then through javascript request dynamic data from the server. Or generate it using the same JSP, and give the generated html-content. Spring contains the same thing that JSP can make HTML. You can also use a hybrid approach. It's a matter of preference.
    5. Studying spring is not immediately accurate. First you should learn the usual servlets.
    • Everything seems to be clear, thanks. Then I go learn servlets, and then documentation. - Asyns