pigx理解

多租户系统, 忽略租户

使用 TenantBroker

多数据源

1.  源代码位置:com.pig4cloud.pigx.common.datasource.config.JdbcDynamicDataSourceProvider#executeStmt 初始化多数据源

主数据源配置在配置文件中

其他数据源放在:gen_datasource_conf

queryDsSql = "select * from gen_datasource_conf where del_flag = '0'";

 2.  @DS("#last") springEL 表达式, 选择具体的数据源

参考:https://blog.csdn.net/fjnpysh/article/details/128817004

 

登录失败账号锁定

代码位置:com.pig4cloud.pigx.auth.support.handler.PigxAuthenticationFailureEventHandler#recordLoginFailureTimes

 

posted @ 2022-06-18 18:23  知行-zhixing  阅读(398)  评论(0编辑  收藏  举报