Giter Site home page Giter Site logo

recommendedsystem's Introduction

软件工程大作业 基于协同过滤算法的推荐系统


理解流程

  • Application.customize可自定义启动端口
  • index.js里面调用jquery.session判断userName是否存在来判断用户是否已经通过验证,进而决定是否重定向到登录页面
  • springboot自动映射/index.html,所以不用显示写出路径映射
  • 登录和注册用的是同一个HTML文件,login.js根据是登录还是注册显示不同的组件
  • 类的总体说明
    • AddDataController:纯粹是为了增添数据库的数据,与用户逻辑无关
    • LoginController:用户的登录和注册
    • UserController:其他的所有逻辑,包括频道的加载,用户推荐等。注意的是频道id和用户id相同时,只有一条观看历史,这是因为history表的联合主键为频道id和用户id,所以用一个户观看同个频道时,只会更新时间,不会插入记录。
    • LoginRequestRegisterRequest:分别对应将其登录,注册上传的json解析为对象,方便处理
    • HistoryReturnLoginReturn:作为Message的数据返回给前端,再通过jqery取值操作dom
    • Message:返回给前端的对象,包括状态,错误信息,数据。这里采用了泛型,挺好的设计方案。
    • mapper下的所有类:对应不同表的操作,可以具体查看下JpaRepository的用法
    • model下除了UserChannelPK外都对应一张表,UserChannelPK对应history表的联合主键,重写equalshashCode是为了主键相等时的判断(从主键定义上来讲讲应该如此做)。

发现的bugs

  • 注册界面上的记住我只是显示而已,没有实际作用
  • ChannelRepositoryfindByType没有作用,发现原因:中文乱码。指定数据库连接编码解决。

recommendedsystem's People

Contributors

wangtengye avatar

Watchers

Icy Liu 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.