febsteam / febs-cloud Goto Github PK
View Code? Open in Web Editor NEW基于Spring Cloud Hoxton.RELEASE、Spring Cloud OAuth2 & Spring Cloud Alibaba & Element 微服务权限系统,开箱即用。
License: Apache License 2.0
基于Spring Cloud Hoxton.RELEASE、Spring Cloud OAuth2 & Spring Cloud Alibaba & Element 微服务权限系统,开箱即用。
License: Apache License 2.0
简单描述下遇到的问题
简单描述下问题复现的步骤
提供相关截图,以协助问题分析
issue模板,by MrBird.
简单描述下遇到的问题
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.
鸟哥,非常想学习springcloud下集成websocket,因为有些应用场景需要服务器与客户端进行实时通信
看过作者的源码,貌似帐号和密码在登陆的时候前后端传参的时候没有经过加密,后段采用的是Spring security的passwordEncoder.encode的方法去生成用户密码,如果用这种方式的话前端用什么方法去加密传参呢,貌似passwordEncoder.encode方法对相同密码每次生成的密码都不一样,或者考虑使用md5+salt加密传参?
简单描述下遇到的问题
简单描述下问题复现的步骤
提供相关截图,以协助问题分析
issue模板,by MrBird.
如题
Hi,大佬,你好:我看现在工程中的springcloud Alibaba是孵化器版本0.9.0,会考虑升级springcloud Alibaba到毕业版本2.1.1及引入Dubbo吗?
简单描述下遇到的问题
简单描述下问题复现的步骤
提供相关截图,以协助问题分析
issue模板,by MrBird.
简单描述下遇到的问题
启动jobserver报错
我改成支持https协议后启动报错,只是添加了证书和修改了配置,修改之前启动应该是没有问题的,不过我没试过,我需要使用https协议,就是改回没问题也白搭啊。。。咋回事呢,就在resources填了一个jks文件,在yml中添加了ssl相关配置,其他的都可以启动成功,就这一个不行
简单描述下问题复现的步骤
编译运行报错
提供相关截图,以协助问题分析
https://oscimg.oschina.net/oscnet/up-00c45ecf4b4ce232ec8c5dc395d4667adec.png
issue模板,by MrBird.
oauth_client_details表里,如果resource_ids不为空时,就算指定了目标资源的resource_id,还是没有权限访问目标资源。
进源码看了一下,内部默认实现,并不是拿远程返回的resourceid,希望老哥优化一下
使用mongo数据的原因为何?
如果只是读取黑白名单列表,MYSQL不是可以满足需求么?
没想明白,求解答。
RT
实践中发现标准的RBAC模型并不完全适合前后端分离的场景,一个页面上可能会有多个接口调用,同一个接口也可能会在多个页面被调用,所以我觉得需要将两者分开,区分菜单权限和接口权限,由开发人员维护菜单(页面)和接口的关系,网关层只需要对接口权限进行检查,系统使用者通过设置菜单权限间接的管理接口权限,接口权限对用户透明,这样逻辑更清晰。看到一个项目SpringBlade似乎也是这种思路。
下载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了,是不是考虑升级一下呢
简单描述下问题复现的步骤
提供相关截图,以协助问题分析
issue模板,by MrBird.
user-info-uri 如果可以配置成nacos Service 而不是环境变量就好了
security:
oauth2:
resource:
id: ${spring.application.name}
user-info-uri: http://${febs-gateway}:8301/auth/user
简单描述下遇到的问题
添加菜单的时候为什么没有hidden这一项呢?默认都是false,或许加入时候hidden更好些
简单描述下问题复现的步骤
提供相关截图,以协助问题分析
issue模板,by MrBird.
企业架构中,IAM认证登录系统都是独立的,连接自有的AD域控,多个系统间的交互现在基本都是通过API网关的形式(以前是ESB),API网关需要高性能,JAVA实现的虽然也可以,但是远远不及Nginx性能高,kong或者进入了Apache孵化器的apisix,都挺好的
您好,是否可以将子微服务单独抽离出来成为一个项目呢?
这样的话,开发者就可以专注于自己负责的项目,而登陆验证模块是通用的,可以搭建一个开发环境通用调取
后端导入那一步,需要写环境变量mysql.url之类,在vscode上折腾过一次,忘了,哪位大神指导下
issue模板,by MrBird.
这个系统估计没维护了,,慎重下载,无法升级alibaba.cloud版本,生产环境中时不时报ERROR FEBS-Gateway reactor-http-epoll-1 cc.mrbird.febs.gateway.common.controller.FallbackController 无法找到微服务:FEBS-Server-System
由于mysql协议不太友好,是否可以有大神提供下转postgres的教程
issue模板,by MrBird.
仔细看server下的微服务启动过程的之日,基本上都会打印两句一模一样的日志,jar重复引入了吧
自定义starter都引入了core,特别是datasource和security,干啥啊,导致微服务启动日志重复打印,停止时,registrationListener 异常,请作者看到仔细测试下,都是很显而易见的问题
简单描述下问题复现的步骤
提供相关截图,以协助问题分析
issue模板,by MrBird.
既然已经有 febs-auth
为啥不做成所有登录页面都能用同一个账号
简单描述下遇到的问题
服务于服务之间调用,出现时间转换异常
简单描述下问题复现的步骤
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.
包括cloud alibaba
然后cloud dubbo 也可以加入教程了噶。不走微服务的话 RPC真的很香啊
简单描述下遇到的问题
简单描述下问题复现的步骤
提供相关截图,以协助问题分析
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-Job项目的时候,异常启动失败。
直接启动FEBS-Server-Job项目。
查找相关的资料“https://github.com/spring-projects/spring-boot/issues/16656”,尝试在排除以来,问题没有解决。
issue模板,by MrBird.
就像spring-boot-starter-web之类的方式实现,配置一下马上使用
弱弱的问一句接入skywalking么
系统controller层的访问日志现在只有server-system中有,其他模块中添加比较麻烦,建议做成通用模块
绑定注册会发生错误
简单描述下遇到的问题
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.
目前菜单路由是二级菜单,当再往下级添加菜单之后,菜单路由就异常了。
RT
按照要求添加了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.
开启权限验证后,访问后端API接口时,没有token会跳出一个登录的form表单,在哪里取消
提供相关截图,以协助问题分析
spring-security-oauth被废弃了,功能整合到spring-security5.2.x,不再支持Authorization Server ,大佬是否考虑其它oauth授权,比如Keycloak?
1核2G
云服务器 标准型S2
带宽
1M
系统盘
50G高性能云硬盘
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.