سؤال

I am a newbie in web development. I'm using servlets and JSP for web development.However, I've learnt lately that Spring Framework is apt for that which incorporate servlets, jsp etc. So, my question is that can I now run my program using Spring framework ? Like, I have 2 jsp codes, and 1 servlet class. So, how can I migrate the code in Spring Framework ? what additional things or codes do I need to maintain ?

هل كانت مفيدة؟

المحلول

Migrating an existing J2EE project is easy. You will get rid of a lot of "boilerplate" code in the process. The easiest way to do it in my opinion will be to use SpringToolSuite. Import your project in STS and then add "Maven" nature to it. In the pom configuration you can edit all the jars that you need and mention the spring framework. Once all this is setup it will be just a matter of minutes to change the code if it is small.

You can follow these video tutorials about maven and spring to learn about it. JavaBrains

There are more tutorials by "New Circle training" on youtube for the same.

I would also recommend you to read Spring in action 3rd edition-Manning

This book is a must and the best way to learn spring framework. Hope this helps

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top