Giter Site home page Giter Site logo

backend-team's Introduction

后端组任务:Spring Boot 注册登录接口

运行 MySQL

可选择以 Docker 形式运行

cd ./docker_mysql
docker compose up

或直接在宿主机运行,并修改 application.properties的地址和用户

Spring 依赖

从 start.spring.io 中选择合适版本和以下依赖:

  1. Spring Boot DevTools
  2. Spring Web
  3. MySQL Driver
  4. Spring Data JPA
  5. Spring Security

功能概述

  1. Spring Web 提供 Rest 请求支持
  2. Spring Security 提供用户认证、权限管理
  3. 连接 MySQL 数据库进行读写
  4. 端口为 8080

API

参考:API 文档

前端测试

针对本项目使用 Vue 搭建了一个前端测试页面,仓库地址:frontend-vue

测试运行(5173 端口):

npm run dev -- --host

Todo

  • 更详细的错误提示
  • 更精确的 CORS filter
  • 加入 Remember Me 支持
  • 加入 Spring Security JWT 支持
  • 登出功能
  • 为不同用户分配不同 role
  • 前端登录后返回上一界面

backend-team's People

Contributors

zenpk avatar

Stargazers

 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.