Giter Site home page Giter Site logo

courseselectionsystem's Introduction

CourseSelectionSystem

基于 SSM 的学生在线选课系统

项目简介:ssm + bootstrap + PageHelper.


目前粗略的完成大概的功能,只在正常的操作下不会出错,增删改查的数据验证还没写.

在最佳实践中,应当还应该返回与此操作相关的其他操作。比如,查询得到实体的响应中,应包含该实体的删除、更新操作的地址

如果业务上需要确保User对象的uname属性必填,如何实现呢?若将这类参数验证的代码写死在Controller中,势必会与正常的业务逻辑搅在一起,导致责任不够单一,违背于“单一责任原则”。建议将其参数验证行为从Controller中剥离出来,放到另外的类中

  • REST 风格

  • 分步查询、延迟加载

  • 建了太多 session 存 map了,可以用 Model Map ModelMap

编写日志:

2019.10.16: 粗略完成了基本的功能, 很多验证功能没有完善.

知识: JavaBean 的属性名的注意点, plugins 的顺序问题, Controller Server 的分工 等

希望下次 加上事务管理(回滚) 代码重复度较高,可以把许多类似的抽离出来封装成一个类, 自定义异常加强掌握 Map,ArrayList 等集合的初始化做的不够好, 可能资源浪费 转发和重定向 混乱 数据库访问次数太多,基本一次请求访问一次

甚至可以直接使用 bootstrap 模板, 利用 拦截器 对 未登录用户进行拦截 .

主页面截图:


学生:



教师:



管理员:



courseselectionsystem's People

Contributors

lankerens 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.