Giter VIP home page Giter VIP logo

oauthserver's Introduction

oauthserver

简介

oauthserver是一个基于Spring Boot Oauth2的完整的独立的Oauth2 Server微服务。仅仅需要创建相关数据表,修改数据库的连接信息,你就可以得到一个Oauth2 Server微服务。
为了开发方便,项目拆分成两个模块,api和web。api运行在8181端口,web运行在8182端口。api模块是提供api服务的,主要是oauth token、支付等接口;web是管理端。

支持的关系型数据库:

  • MySQL

功能概览

api

  1. Oauth token服务;
  2. 微信、支付宝支付;
  3. 七牛云存储;
  4. 代码生成器。

common

公共工具类模块

web

  1. 主页
    1. 了解OauthServer
    2. 新闻管理
    3. 订单管理
  2. 系统管理
    1. 定时任务
    2. 菜单管理
    3. 用户管理
    4. 权限管理
    5. 数据字典
  3. 系统工具
    1. 代码生成
    2. swagger
    3. druid
    4. 日志管理

更新日志

1.3.0-1(2019-01-06)

####web

  1. 新闻管理的新增和修改页面使用layer代替easyui-window,以解决neditor图片上传弹框高度太高,造成确定按钮被遮挡的问题;
  2. 修复订单管理页面搜索bug;
  3. 操作结果使用toastr代替easyui messager;
  4. 移除froala editor依赖,该富文本编辑器不被允许用在开源项目中;
  5. 解决index_iframe页面侧边栏菜单项打不开的bug;
  6. 移除toastr依赖,并在plug-in中添加toastr相关js和css;
  7. 移除index_v1和index_iframe页面的footer,以保留更多的标签页高度,给easyui-window提供更多的高度空间。

1.3.0(2018-12-20)

  1. 项目拆分成两个模块,api和web;api运行在8181端口,web运行在8182端口。
  2. 代码生成器http://localhost:8181/tables?easyui-listhttp://localhost:8182/tables?easyui-list
  3. 大量更新;

更多历史更新日志查看CHANGE_LOG.md

使用流程

1. 安装jar

有部分自建jar在**仓库是没有的,需要使用mvn install安装到本地。执行“需要安装的jars”文件夹下的install.bat安装。

2. 建表

  • MySQL
    请执行数据初始化脚本.sql,完成数据表的创建和测试数据的导入。

3. 修改数据库连接信息

  • MySQL
    连接信息在application-mysql.yml里。修改完数据库连接信息后,还需要设置application.ymlspring.profiles.active=mysql

4. 运行

现在,一切已准备就绪。运行项目,当程序成功启动时,即表明你已配置成功。

api测试

oauth接口调用示例

管理端页面

测试账号:手机号18800000000,密码1234567890c

管理端页面样式1

访问地址:http://localhost:8182/index/index_v1 index_v1

管理端页面样式2

访问地址:http://localhost:8182/index/index_iframe index_iframe

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.