开发者

Email Client using Spring

开发者 https://www.devze.com 2023-03-16 02:56 出处:网络
I am looking to build an email client using Spring in Java to hopefully get some experience using the Spring framework. Would I be best off using the JavaMail library or the Email library that is part

I am looking to build an email client using Spring in Java to hopefully get some experience using the Spring framework. Would I be best off using the JavaMail library or the Email library that is part of the Spring framework?

I have no experience开发者_Python百科 with either, just wondered what the best option would be. I mainly want to learn Spring in more detail.


The Spring mail library is just a thin wrapper around the JavaMail API. It's considerably easier to use than the raw API.

It's not a core part of Spring, though, and won't really teach you much about how Spring works.


Skaffman is correct Spring has its own mail library.

I think you are taking the right approach. The key to learning and understanding any framework is to use it and build something you are interested in.

You can easily build a thick client mail application in Spring. Beyond the mail API, you will gain experience using the bean container, dependency injection, spring annotations, and numerous other features. As your project grows you can pick other features of Spring that interest you and identify problems for your solution.

Remember Spring is a pocket knife framework. You may not(and probably should not) use all of it. The best place for information regarding spring is the Docs(available at springsource.org)

0

精彩评论

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