Giter VIP home page Giter VIP logo

uc's Introduction

用户中心(User Center)

概述

用户中心主要实现功能为用户的注册和登录,以及简单的修改密码的逻辑。其中使用了 cookie & ThreadLocal 来替代 session 来存储当前用户信息, 使用注解来实现用户访问某个 url 时的登录状态。写该项目的目的其实就是为了将自己以往的学习的东西都实践一下。以后学到的东西也都会整合进来。

使用到的技术

  • gradle
  • spring boot
  • spring mvc
  • mybatis
  • redis

思考

  • 项目多模块划分的原则?

  • 配置问题,数据访问层需要数据库连接,业务逻辑层需要缓存连接,放在各自的层中?或者是放在最顶层(比如说 web 层)?如果是更好的办法?每个地 方都有缺点,如果是放在各自的层中那么例如在多个测试环境中分别部署,这是数据库或者缓存服务器都是不同的,难道还要对不同的环境进行分别打包?因 为是直接引用 jar 包的方式,对于引用层来说具体的实现是透明的,难道使用约定配置的方式?好像也不优雅。

  • 划分多模块的意义何在?

结束语

just a rookie

uc's People

Contributors

zhangyonga avatar

Watchers

 avatar

uc's Issues

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.