i am new to java design patterns and i am building the ecommerce sit with spring mvc. but i am confused how to write various classes according to patterns.
i don't know where to put authenticate , confirmEmailAddress , addProdctCart , shoppingHistory like functions ,
so is there example of any site where i can find how divide the functions in classes
Java web frameworks tends to be more bare-bones than other web frameworks.
Rails give you convention-over-configuration and it's pretty easy to get up a data-driven/dynamic website up and running.
PHP offers several frameworks. Drupal, Wordpress, CodeIgniter, just to name a few.
I've used each of these, and each has their strength. To boil it down, I would say that in Java, you are cursed by too many options and flexibility and I would say the opposite of the other platforms.
The other platforms (non-Java) may offer methods like authenticate, confirmEmailAddress, addProdctCart, shoppingHistory that you could just fill in. You will not find this in Java.
如果您阅读了Spring Security教程 ,它会为您提供很多内容:Spring MVC,安全性,Hibernate等。您可以从他们的SVN repo中查看PetClinic示例应用程序。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.