Giter VIP home page Giter VIP logo

springbootdemo's Introduction

SpringBootDemo

使用springboot快速开发的一个小demo

idea需要安装lombok插件

数据库文件在src/main/resources中

-项目地址 -前端地址

包含功能

  • spring boot
  • jpa
  • 前台仅需一次验证无需后续请求附带凭证的登陆(解放前端双手,后端处理一切)
  • 登陆拦截器
  • session监听器
  • 自定义注解
  • 统一异常处理
  • aop
  • swagger
  • 跨域处理
  • 使用thymeleaf模版引擎,引入LEGACYHTML5(解决vue编译后需要/的问题)
  • 使用spring-boot缓存存储用户信息

不足

  • ThreadLocal不使用注解进行限制,退出后有一定几率还能获取到用户信息
  • cookies被禁用时,将无法登陆

遇到的坑

  • 跨域问题
  • ThreadLocal的生命周期
  • cookies丢失
  • thymeleaf模版引起默认mode必须要加/
  • 拦截器需要配置

springbootdemo's People

Contributors

stalary avatar

Stargazers

 avatar huhu avatar Ywain avatar  avatar Sharember avatar Sumey avatar 天亮哥 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

springbootdemo'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.