Giter Site home page Giter Site logo

springboot-openresty-china's Introduction

springboot 入门 demo

  • 一个运行在java springboot上的服务端技术论坛项目 (处于学习开发中)

特点

  • 集成了 springboot + Spring Security (jwt授权认证) + redis + mybatis-plus + Knife4j
  • 多模块
  • 完成目标 参考 openresty-china

描述

  • 目前该项目作为练手学习 springboot 开发, 持续更新中

环境

  • idea springboot2.5.14 mysql5.7 redis

启动

  • cp bbs/src/main/resources/application.yml bbs/target/
  • cd bbs/target/
  • java -jar bbs-0.0.1-SNAPSHOT.jar

接口文档

重置密码 加密方式


> GET /login?userId=9 HTTP/1.1
> Host: localhost:8081
> User-Agent: insomnia/8.2.0
> Accept: */*

* Mark bundle as not supporting multiuse

< HTTP/1.1 200 
< Vary: Origin
< Vary: Access-Control-Request-Method
< Vary: Access-Control-Request-Headers
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Wed, 22 Nov 2023 03:27:22 GMT

登录

> POST /admin/login HTTP/1.1
> Host: localhost:8081
> Content-Type: application/json
> User-Agent: insomnia/8.2.0
> Accept: */*
> Content-Length: 39

| {"username":"test","password":"123456"}
 
 
resp:
{
	"code": 200,
	"msg": "登录成功",
	"data": {
		"user": "test",
		"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0IiwiYXV0aG9yaXRpZXMiOiJhZG1pbiwiLCJleHAiOjE3MDA3MzA1MDJ9.yVY3ALusmHPkXKwxoDoF86HWw9LkHlCHjy4snqYzTGVMyO7_KdIa-ewi8s8mUpfSWxh5tT9XXNmjr-4z42myaQ"
	}
}

带jwt-Token访问 topic/list

> GET /v1/topic/list?pageNum=3&pageSize=10&pageNum=1 HTTP/1.1
> Host: localhost:8081
> User-Agent: insomnia/8.0.0-beta.0
> Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0IiwiYXV0aG9yaXRpZXMiOiJhZG1pbiwiLCJleHAiOjE3MDA3MzA1MDJ9.yVY3ALusmHPkXKwxoDoF86HWw9LkHlCHjy4snqYzTGVMyO7_KdIa-ewi8s8mUpfSWxh5tT9XXNmjr-4z42myaQ
> Accept: */*
> Content-Length: 0
 
resp : 
{
	"code": 200,
	"msg": "请求成功",
	"data": {
		"totalPage": 51,
		"list": [
			{
				"id": 73,
				"title": "查看进程,按内存从大到小",
				"content": "```\n查看进程,按内存从大到小 \n[r"
             }
        ]
    }
}

springboot-openresty-china's People

Stargazers

poembro avatar

Watchers

poembro 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.