मैं बसंत कोडिंग के लिए काफी नया हूं .. मैंने पहले एक प्रश्न पूछा लेकिन कोई भी उत्तर नहीं दिया इसलिए मैं इसे दूसरी तरफ पूछ रहा हूं .. !! मुझे अपने एप्लिकेशन को सरल जावा से स्प्रिंग एमवीसी में स्थानांतरित करने की आवश्यकता है।स्क्रैच से स्प्रिंग एमवीसी ट्यूटोरियल
क्या कोई अच्छा वसंत एमवीसी ट्यूटोरियल है जो स्क्रैच से जानकारी देता है ??
मेरा सरल कोड नीचे है।
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");
}
}
मैंने googling की कोशिश की, लेकिन मुझे जो कुछ भी मिला वह से शुरू करना बहुत मुश्किल था।
धन्यवाद।
आगे बढ़ने से पहले: यह मूल प्रश्न को संपादित करने के बजाय http का डुप्लिकेट प्रश्न बनाने के लिए अधिक विनम्र माना जा सकता है: // stackoverflow .com/प्रश्न/7025062/माइग्रेट एक पूरे आवेदन-से-सरल-जावा-टू-वसंत-MVC। –
@aleksi: निश्चित रूप से अगली बार देखभाल करेगा .. –