简体   繁体   English

是否有任何在线电子商务项目架构可用于Java

[英]Is there any online ecommerce project architecture available in java

i am new to java design patterns and i am building the ecommerce sit with spring mvc. 我是java设计模式的新手,我正在用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 , 我不知道在哪里放置authenticate,confirmEmailAddress,addProdctCart,shoppingHistory之类的函数,

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. Java Web框架往往比其他Web框架更加简单。

Rails give you convention-over-configuration and it's pretty easy to get up a data-driven/dynamic website up and running. Rails为您提供了基于配置的约定,并且很容易启动并运行数据驱动/动态网站。

PHP offers several frameworks. PHP提供了几个框架。 Drupal, Wordpress, CodeIgniter, just to name a few. Drupal,Wordpress,CodeIgniter,仅举几例。

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. 简而言之,我会说在Java中,你被太多的选择和灵活性所诅咒,我会说其他平台的反面。

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. 其他平台(非Java)可能提供您可以填写的authenticate,confirmEmailAddress,addProdctCart,shoppingHistory等方法。您不会在Java中找到它。

如果您阅读了Spring Security教程 ,它会为您提供很多内容:Spring MVC,安全性,Hibernate等。您可以从他们的SVN repo中查看PetClinic示例应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM