Giter Site home page Giter Site logo

shit-ssm-eshop's Introduction

SHIT-SSM-ESHOP

一个充满了 Java 臭味的 基于 Spring + Mybatis 的 非常简单 但却 异常安全 的 电子商城

MAKE THAT DAMN SIMPLE BUT SUPER SECURE SHOP GREAT AGAIN!

开发要求

开发相关:

API 列表:参看 Swagger

开发要求:

  • 统一使用 LF 换行和 IDEA,保存为 UTF-8 (no BOM)!命名参照大驼峰命名,合理利用 IDE 功能!
  • PR 合并,多分支 开发,Commit 前一定先 Pull! 合入主分支前交 PR 并要求第三方 Code Review, 出现任何相关的问题请私聊。
  • 禁止使用 CSDN&Baidu(包括但不限于百度搜索、百度知道、百度经验),可以使用 SegmentFault/Myblogs/Jianshu/Stack Exchanges 全家桶/Google.
  • 提问前阅读 https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
  • 严格逻辑,禁止完全依赖前端校验,用户输入完全不可信!
  • 用户输入禁止任何形式的后端直接字符串拼接和前端直接引用,务必清洗/重命名/指定独立路径另机存放!

认证方式: Authorization Header using Bearer Token with JWT

明确指定验证方式,禁止使用弱密钥!一定验证身份 id 和用户权限是否匹配!

用户请求字符串必须排序后添加时间戳再签名,服务端时间一定要 开启 NTP 时间同步!

文件上传认证:

  • 检测敏感字符
  • 检测后缀名或MIME,二选一,可以连用但不能混用。若为 MIME 检测,请存储到本地后自行调库检测。不能使用用户传入的 MIME 数据。
  • 图片的上传检测:文件后缀名 -> 文件幻数 -> 随机解析图片多个取像素点。

shit-ssm-eshop's People

Contributors

kmahyyg avatar papilon-debug avatar test9032 avatar tangjiatao avatar walkenzhong 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.