Spring MVC Training For Web Projects

I looked at Spring MVC several times and got some basic ideas. However, whenever I look closely, it seems to you that you already know the whole load of "core Spring". The book I have, for example, has several hundred pages before it hits Spring MVC ... which seems to make a lot of work. I'm used to being able to log in, but there are so many bean-related things and XML, it just looks like a ton of data to consume.

Does it make it easier if you put the time or is Spring just a much larger structure than I thought? Is it possible to study this side separately?

+2
source share
4 answers

@John Spring just a much bigger framework than I thought? β€œPerhaps so, at least I thought so.”

is it possible to learn this side of it in isolation? - Yes, here is a good way to find out your path http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html

And also I would recommend you read the book manning spring in action 2nd edition , I also studied spring from scratch, and now I like it after reading this book, of course, you should link to the link now and then.

Here you can get some basic information about the MVC concept if you are not already familiar with it (php, but the important thing is not the syntax)

http://net.tutsplus.com/tutorials/other/mvc-for-noobs/

EDIT

If you want to see MVC in action, with examples or others, spring uses this repository https://src.springframework.org/svn/spring-samples to test some projects, you will see mvc-basic, mvc-ajax..etc, this a really good resource, you can test projects using Tortoise SVN on windows or subqueries from eclipse

+4
source

At the very least, you need to understand the basic Spring - dependency injection, application context configuration, and so on. It's actually not too complicated, just a little hard to get started. For an experienced developer, it might make sense to take a look at a sample application for basic setup.

ps. I have this sample project for a combination of JSF / Spring / JPA / Hibernate . Not Spring-MVC, but may be useful.

+1
source

I myself am trying to learn Spring MVC here from the official NetBeans documentation:

http://netbeans.org/kb/docs/web/quickstart-webapps-spring.html

Starting with ASP.Net/C#, there seem to be so many steps in this simple example.

+1
source

The great thing about Spring is that you can choose and choose what you use. If you want to use Spring, you do not need to jump into the head first, you can just try it, say, using the Injection Dependency functions or using the JDBC Template material. My recommendation would be to start small and see how you like it.

To use Web MVC material, you will need to understand Injection Dependency to configure your controllers. You can use an older, more flexible XML-style configuration, or use new annotations. Or you can mix and match. Starting with XML might be better, as it will help you understand how the material works (it will be like learning C and C ++ before Java). Then you can move on to using annotations. Personally, I use XML to instantiate all my beans. I am using @Autowire annotation for dependency injection. This is perhaps the most pleasant place for more flexibility and ease of use.

0
source

Source: https://habr.com/ru/post/1311014/


All Articles