Coder Social home page Coder Social logo

egg's Introduction

egg

copy/base on pig... spring cloud + java 17

核心依赖

依赖 版本
Spring Boot 3.1.0
Spring Cloud 2022.0.3
Spring Cloud Alibaba 2022.0.0.0-RC2
Spring Authorization Server 1.1.0
Mybatis Plus 3.5.3.1
hutool 5.8.18

配置本地host

nacos

http://pig-register:8848/

搭建步骤

1.. 搭建基本Maven框架

-- egg
    -- egg-common 系统公共模块
        -- egg-common-bom  通用依赖管理,无其他作用
        -- egg-common-core 核心库
    -- egg-register 服务注册/配置中心
    -- egg-gateway  网关服务
    -- egg-auth  认证服务
    -- ...

2..引入Nacos

服务注册中心

3.. 引入网关gateway

4.. 引入spring security oauth2

统一授权

查阅资料

https://www.jianshu.com/p/c4952ef14660

1.Spring Authorization Server
官方主页:https://spring.io/projects/spring-authorization-server
demo: https://blog.csdn.net/qq_31772441/article/details/126092213

issue

point:

1. 自定义starter,自动配置 -
2. @EnableFeignClients 指定最大的扫描路径, 否则会找不到实现类

API

1. obtain token: pig-gateway:9999/auth/oauth2/token?grant_type=password&scope=server&username=admin&password=YehdBPev

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.