开发者

Spring MVC tutorial from the scratch [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

I am quite new to spring coding.. I asked a question earlier but no one replied so I am asking it the other way..!! I n开发者_高级运维eed to move my application from simple Java to Spring MVC.

Is there any good Spring MVC tutorials that gives info from scratch??

My simple code is below.

public void run()
{
    try
    {
        DataInputStream din = new DataInputStream (
            m_connection.getInputStream() );

        PrintStream pout = new PrintStream (
            m_connection.getOutputStream() );

        // Read line from client
        String data = din.readLine();

        // Check to see if we should simulate a stalled server
        if (shallWeStall)
        {
            // Yes .. so reset flag and stall
            shallWeStall = false;

            try
            {
                Thread.sleep (20000);
            } catch (InterruptedException ie ) {}
        }
        else
        {
            // No.... but we will next time
            shallWeStall = true;
        }

        // Echo data back to clinet
        pout.println (data);

        // Close connection
        m_connection.close();
    }
    catch (IOException ioe) 
    {
        System.err.println ("I/O error");
    }
}

I tried googling, but everything I found was too tough to start from.


UPDATE: Due to amazing effort by the Spring team links posted here stands as sort of outdated. I will advice anyone looking to learn spring from scratch to head over to new awesome guides created by spring team.

Sample codes for the same can be found at Github

Original Answer :

try these links.. hope they are useful. mkyong and vanilla

and ofcourse Spring's own site

ADDED : found this new awesome blog do try this also.. its thorough. :)


hey i also found one new excellent site you can use that one too..

krams tutorials

Hope its helpful.. :)


I started learning Spring MVC using this tutorial: Spring MVC. It explains some of the basic concepts well and is a good place to start.


This tutorial explains basic concepts and provide step by step explanation for implementation.
I started with this one and it really helped me :)


There's a similar question with some very good answers.

In other words, if you're ok with Spring 2.5, try the Step-by-Step tutorial from SpringSource. If you like Maven, Appfuse has some great archetypes that get you started with Spring 3 Web MVC.


I understand your problem, If you want to learn something about Spring MVC from scratch then, here is an informative blog published on Spring MVC & MongoDB http://findnerd.com/list/view/Spring-MVC-and-MongoDB/2240/, hope this will help you to understand the Spring MVC in a detailed way.

While learning from this blog you can also post & view java questions and answers to enhance your tech knowledge among the developers community.


This one uses Spring 3.2, doing all the mapping and configuration with Annotations, and managing the dependencies with Maven:

http://siempredesdeelcurro.blogspot.com.es/2013/02/tutorial-crear-app-web-con-spring-mvc.html

By the way, it's in Spanish, but even if you don't know any word, you can get the code and check the screenshots.


Start learning with spring mvc hello world example with java based configuration

Official Spring 4.3 documentation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜