hzero-gateway启动时报下列错误。有大侠知道是什么原因吗。
hzero_platform.hpfm_tenant表设定内容:
# tenant_id, tenant_num, tenant_name, enabled_flag, object_version_number, creation_date, created_by, last_updated_by, last_update_date, limit_user_qty
'0', 'HZERO', 'HZERO平台', '1', '1', '2021-09-16 10:00:06', '-1', '-1', '2021-09-16 10:00:06', NULL
错误log:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminRolePermissionFilter' defined in URL [jar:file:/C:/Users/liang/.m2/repository/org/hzero/hzero-gateway-helper-default/1.4.0.RELEASE/hzero-gateway-helper-default-1.4.0.RELEASE.jar!/org/hzero/gateway/helper/filter/AdminRolePermissionFilter.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Tenant super admin role not found. roleCode is role/organization/default/administrator
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1694)
AbstractAutowireCapableBeanFactory.java:1694
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573)
AbstractAutowireCapableBeanFactory.java:573
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
AbstractAutowireCapableBeanFactory.java:495
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
AbstractBeanFactory.java:317
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
DefaultSingletonBeanRegistry.java:222
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
AbstractBeanFactory.java:315
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
AbstractBeanFactory.java:199
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
DefaultListableBeanFactory.java:759
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
AbstractApplicationContext.java:867
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:548)
AbstractApplicationContext.java:548
at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:67)
ReactiveWebServerApplicationContext.java:67
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
SpringApplication.java:754
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386)
SpringApplication.java:386
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
SpringApplication.java:307
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:137)
SpringApplicationBuilder.java:137
at org.hzero.gateway.GatewayApplication.main(GatewayApplication.java:21)
GatewayApplication.java:21
Caused by: java.lang.IllegalStateException: Tenant super admin role not found. roleCode is role/organization/default/administrator
at org.hzero.gateway.helper.filter.AdminRolePermissionFilter.afterPropertiesSet(AdminRolePermissionFilter.java:202)
AdminRolePermissionFilter.java:202
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1753)
AbstractAutowireCapableBeanFactory.java:1753
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1690)
AbstractAutowireCapableBeanFactory.java:1690
... 15 more