Giter Site home page Giter Site logo

ssh's Introduction

ssh

Spring + Struts2 + Hibernate。主要实现用户注册与登录功能。

项目结构如下:

enter image description here

层次写得比较细:

  • jsp 是表示层。通过它提交过来的数据交给 Controller(Struts2_filter);

  • Controller 帮我们调用具体的 Action;

  • Action 再帮我们调用后面的业务逻辑(UserManager、UserManagerImpl、User);

  • 根据业务逻辑返回的结果,找到对应的 view,反馈给客户端,MVC 中 V 和 C;

  • Model 中,两大层:

  • business 层:管理层(抽象的抽象层 UserManager、具体的实现层 UserManagerImpl)、实体层 User;  

  • DAO 层:抽象层、实现层。DAO 负责和数据库打交道。

ssh's People

Contributors

twilighce avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.