Giter Site home page Giter Site logo

febsteam / febs-cloud Goto Github PK

View Code? Open in Web Editor NEW
1.8K 1.8K 822.0 3.95 MB

基于Spring Cloud Hoxton.RELEASE、Spring Cloud OAuth2 & Spring Cloud Alibaba & Element 微服务权限系统,开箱即用。

License: Apache License 2.0

Java 84.04% FreeMarker 1.61% Dockerfile 0.52% Shell 0.09% HTML 0.43% PLpgSQL 13.31%
admin docker elk grafana kubernetes microservice oauth2 prometheus rbac seata skywalking spring-boot spring-cloud spring-cloud-alibaba spring-cloud-oauth2 tx-lcn vue vue-admin webflux

febs-cloud's People

Contributors

ming-lz avatar wuyouzhuguli avatar wx7614140 avatar xuefrye avatar yuukila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

febs-cloud's Issues

seata在哪里集成啦 感觉莫看到捏

问题描述

简单描述下遇到的问题

复现步骤

简单描述下问题复现的步骤

相关截图

提供相关截图,以协助问题分析

issue模板,by MrBird.

debug模式启动febs-server下新增的模块后,停掉或者重启该模块时总是报错

问题描述

简单描述下遇到的问题
RT:按照之前参考文档提示的方式新增的模块,可以成功运行。但是停止或者重启时总是报如下错误: Error creating bean with name 'registrationListener': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

复现步骤

简单描述下问题复现的步骤
按照之前参考文档提示的方式新增的模块,可以成功运行。但是停止或者重启时总是报如下错误:
Error creating bean with name 'registrationListener': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!):

非debug模式启动后,重启或停止没有该问题

重新添加新模块尝试重现,但是很奇怪原来有问题的模块没有问题了,新增的模块却出现了这个问题。
神奇啊,到底什么原因呢?

相关截图

提供相关截图,以协助问题分析
提供完整错误日志如下:
Disconnected from the target VM, address: '127.0.0.1:5444', transport: 'socket'
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler Shutting down ExecutorService
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.alibaba.cloud.nacos.registry.NacosServiceRegistry De-registering from Nacos Server now...
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.alibaba.nacos.client.naming [BEAT] removing beat: DEFAULT_GROUP@@FEBS-Server-App:192.168.0.101:8203 from beat map.
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.alibaba.nacos.client.naming [DEREGISTER-SERVICE] public deregistering service DEFAULT_GROUP@@FEBS-Server-App with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceIdGenerator":"simple","ip":"192.168.0.101","ipDeleteTimeout":30000,"metadata":{},"port":8203,"weight":1.0}
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.alibaba.cloud.nacos.registry.NacosServiceRegistry De-registration finished.
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Shutting down ExecutorService 'febsAsyncThreadPool'
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.codingapi.txlcn.txmsg.netty.impl.NettyRpcServerInitializer server was down.
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClientInitializer RPC client was down.
2020-06-17 20:47:31 ERROR FEBS-Server-App nioEventLoopGroup-3-1 com.codingapi.txlcn.txmsg.netty.handler.NettyClientRetryHandler keepSize:2,nowSize:1
2020-06-17 20:47:31 ERROR FEBS-Server-App nioEventLoopGroup-3-2 com.codingapi.txlcn.txmsg.netty.handler.NettyClientRetryHandler keepSize:2,nowSize:1
2020-06-17 20:47:31 ERROR FEBS-Server-App nioEventLoopGroup-3-1 com.codingapi.txlcn.txmsg.netty.handler.NettyClientRetryHandler socketAddress:/192.168.0.101:8888
2020-06-17 20:47:31 INFO FEBS-Server-App nioEventLoopGroup-3-1 com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClientInitializer Try connect socket(/192.168.0.101:8888) - count 1
2020-06-17 20:47:31 ERROR FEBS-Server-App nioEventLoopGroup-3-2 com.codingapi.txlcn.txmsg.netty.handler.NettyClientRetryHandler socketAddress:/0.0.0.0:8888
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.zaxxer.hikari.HikariDataSource HikariPool-1 - Shutdown initiated...
2020-06-17 20:47:31 WARN FEBS-Server-App nioEventLoopGroup-3-1 com.codingapi.txlcn.txmsg.netty.impl.NettyRpcClientInitializer Connect socket(/192.168.0.101:8888) fail. 6000ms latter try again.
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.zaxxer.hikari.HikariDataSource HikariPool-1 - Shutdown completed.
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.codingapi.txlcn.tc.corelog.H2DbHelper log hikariDataSource close.
2020-06-17 20:47:31 WARN FEBS-Server-App SpringContextShutdownHook org.springframework.context.annotation.AnnotationConfigApplicationContext Exception thrown from ApplicationListener handling ContextClosedEvent
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'registrationListener': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:212)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109)
at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:332)
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:297)
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:190)
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:153)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:410)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1013)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:979)
at org.springframework.cloud.context.named.NamedContextFactory.destroy(NamedContextFactory.java:92)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:258)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:579)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:551)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1089)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:512)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1082)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1061)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1030)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:170)
at org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:949)
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.baomidou.dynamic.datasource.DynamicRoutingDataSource dynamic-datasource start closing ....
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.zaxxer.hikari.HikariDataSource base - Shutdown initiated...
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.zaxxer.hikari.HikariDataSource base - Shutdown completed.
2020-06-17 20:47:31 INFO FEBS-Server-App SpringContextShutdownHook com.baomidou.dynamic.datasource.DynamicRoutingDataSource dynamic-datasource all closed success,bye

issue模板,by MrBird.

建议集成websocket

鸟哥,非常想学习springcloud下集成websocket,因为有些应用场景需要服务器与客户端进行实时通信

关于登陆帐号密码明码的问题

问题描述

看过作者的源码,貌似帐号和密码在登陆的时候前后端传参的时候没有经过加密,后段采用的是Spring security的passwordEncoder.encode的方法去生成用户密码,如果用这种方式的话前端用什么方法去加密传参呢,貌似passwordEncoder.encode方法对相同密码每次生成的密码都不一样,或者考虑使用md5+salt加密传参?

分布式事务测试不生效

问题描述

分布式事务测试不生效

复现步骤

biz-test模块(定为A系统)的testController,测试分布式事务(pay)接口
内部实现调用biz-system模块(定为B系统)的pack/send接口。
在B系统的实现,抛出一个异常。A调用端正常执行,没有异常。

结果:A系统的数据正常插入,B系统由于异常,事务回滚了。
但这不符合分布式事务,A系统也应该会回滚

在未启用熔断时,事务能正常回滚。做了熔断处理之后,A系统接口不能正常回滚。

解决方案:在熔断降级处理那里添加回滚处理

相关截图

异常请求:
image

正常请求:
image

数据库数据插入结果:
image

image
image
image

issue模板,by MrBird.

分布式事务不生效

问题描述

简单描述下遇到的问题
@LcnTransaction 不生效

复现步骤

简单描述下问题复现的步骤
Mall服务使用了优惠券之后调用System服务查询用户信息,不存在后抛出异常,Mall服务没有回滚

相关截图

提供相关截图,以协助问题分析
1
2
3

issue模板,by MrBird.

job server 启动报错

问题描述

简单描述下遇到的问题
启动jobserver报错
我改成支持https协议后启动报错,只是添加了证书和修改了配置,修改之前启动应该是没有问题的,不过我没试过,我需要使用https协议,就是改回没问题也白搭啊。。。咋回事呢,就在resources填了一个jks文件,在yml中添加了ssl相关配置,其他的都可以启动成功,就这一个不行

复现步骤

简单描述下问题复现的步骤
编译运行报错

相关截图

提供相关截图,以协助问题分析
https://oscimg.oschina.net/oscnet/up-00c45ecf4b4ce232ec8c5dc395d4667adec.png

issue模板,by MrBird.

建议权限功能细化,区分菜单权限和接口权限

RT
实践中发现标准的RBAC模型并不完全适合前后端分离的场景,一个页面上可能会有多个接口调用,同一个接口也可能会在多个页面被调用,所以我觉得需要将两者分开,区分菜单权限和接口权限,由开发人员维护菜单(页面)和接口的关系,网关层只需要对接口权限进行检查,系统使用者通过设置菜单权限间接的管理接口权限,接口权限对用户透明,这样逻辑更清晰。看到一个项目SpringBlade似乎也是这种思路。

tc-lcn客户端启动后报错

问题描述

下载febs-cloud最新版:启动system后报错如下:
分布式事务的问题:启动微服务后发现:2021-02-03 20:54:41 ERROR FEBS-Server-xxxx Thread-15 com.codingapi.txlcn.tc.txmsg.TCSideRpcInitCallBack Send init message exception: request timeout.. connect fail!

复现步骤

正常启动微服务

相关截图

暂时无法提供图片,

issue模板,by MrBird.

建议添加相关代码注释

问题描述

简单描述下遇到的问题

复现步骤

简单描述下问题复现的步骤

相关截图

提供相关截图,以协助问题分析

issue模板,by MrBird.

mysql建议升级到8.x

问题描述

现在很多都用mysql 8.x了,是不是考虑升级一下呢

复现步骤

简单描述下问题复现的步骤

相关截图

提供相关截图,以协助问题分析

issue模板,by MrBird.

安全配置 疑惑

问题描述

user-info-uri 如果可以配置成nacos Service 而不是环境变量就好了

相关截图

security:
oauth2:
resource:
id: ${spring.application.name}
user-info-uri: http://${febs-gateway}:8301/auth/user

menu router hidden

问题描述

简单描述下遇到的问题
添加菜单的时候为什么没有hidden这一项呢?默认都是false,或许加入时候hidden更好些

复现步骤

简单描述下问题复现的步骤

相关截图

提供相关截图,以协助问题分析

issue模板,by MrBird.

整体架构优化

企业架构中,IAM认证登录系统都是独立的,连接自有的AD域控,多个系统间的交互现在基本都是通过API网关的形式(以前是ESB),API网关需要高性能,JAVA实现的虽然也可以,但是远远不及Nginx性能高,kong或者进入了Apache孵化器的apisix,都挺好的

按照你所说,token不合法

image

找代码也没找到哪里校验这个,根据你所说,Authorization 是admin:123456 加密,因为数据库就是这个账户

mysql转pg问题

问题描述

由于mysql协议不太友好,是否可以有大神提供下转postgres的教程

复现步骤

相关截图

issue模板,by MrBird.

febs定义的starter在自定义的server中引用时会出现jar包重复引入的问题

问题描述

仔细看server下的微服务启动过程的之日,基本上都会打印两句一模一样的日志,jar重复引入了吧
自定义starter都引入了core,特别是datasource和security,干啥啊,导致微服务启动日志重复打印,停止时,registrationListener 异常,请作者看到仔细测试下,都是很显而易见的问题

复现步骤

简单描述下问题复现的步骤

相关截图

提供相关截图,以协助问题分析

issue模板,by MrBird.

单点登录

既然已经有 febs-auth 为啥不做成所有登录页面都能用同一个账号

system模块缺表

问题描述

Caused by: java.sql.SQLSyntaxErrorException: Table 'febs_cloud_base.hibernate_sequence' doesn't exist

复现步骤

image

相关截图

提供相关截图,以协助问题分析

issue模板,by MrBird.

服务调用时间转换异常

问题描述

简单描述下遇到的问题
服务于服务之间调用,出现时间转换异常

复现步骤

简单描述下问题复现的步骤
1.公共类User
2.A服务调用B服务的接口,B服务的数据没有任何问题并正常返回User,A服务接受User时,实体类Date类型爆时间转换异常
3.使用了fastjson以及其他工具都不能解决
4.在本地测试调用没有任何问题

相关截图

提供相关截图,以协助问题分析
报错具体信息:Cannot deserialize value of type java.util.Date from String

issue模板,by MrBird.

非法加载文件

问题描述

简单描述下遇到的问题
新增模块后 启动并没有遇到什么问题,就是这个警告很扎眼

复现步骤

简单描述下问题复现的步骤
暂时无法重现,重新又试了几次但是没有类似的问题。

相关截图

提供相关截图,以协助问题分析
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (/server/resources/com/sun/xml/bind/jaxb-impl/2.3.0.1/jaxb-impl-2.3.0.1.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

issue模板,by MrBird.

FEBS-SERVER-TEST DEBUG模式启动后,停止或者重启报错

问题描述

简单描述下遇到的问题
RT

复现步骤

简单描述下问题复现的步骤
1.启动febs-server-test
2.stop febs-server-test
3.观察控制台会发现报错

相关截图

提供相关截图,以协助问题分析
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'registrationListener': Singleton bean creation not allowed while singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)

issue模板,by MrBird.

菜单路由问题

问题描述

目前菜单路由是二级菜单,当再往下级添加菜单之后,菜单路由就异常了。

添加job任务执行报java.lang.NoSuchMethodException

问题描述

按照要求添加了job方法,并在任务列表中添加了相应的配置,但是调用时就报java.lang.NoSuchMethodException : cc.mrbird.febs.server.job.task.TaskList.updateMemberCache(java.lang.String)

复现步骤

如上

相关截图

1:代码截图:https://oscimg.oschina.net/oscnet/up-69be45b8ebbfa58185ba7ec42cb8fa42834.png
2:配置截图:https://oscimg.oschina.net/oscnet/up-f837a56737da353491f80646eb427450f31.png
3:错误截图:https://oscimg.oschina.net/oscnet/up-1b99eda63e52d5b873c1d36f315d54c250b.png

issue模板,by MrBird.

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.