Skip to content

portal1.8.0启用ldap无法启动 #3551

@SeesawLiu

Description

@SeesawLiu

描述bug

1.8.0 使用ldap时无法启动

复现

通过如下步骤可以复现:

  1. profile 启用ldap
2021-02-18 14:12:24.582 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :

***************************

APPLICATION FAILED TO START

***************************

Description:

The bean 'ldapContextSource', defined in class path resource [org/springframework/boot/autoconfigure/ldap/LdapAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [com/ctrip/framework/apollo/portal/spi/configuration/AuthConfiguration$SpringSecurityLDAPAuthAutoConfiguration.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

期望

正常启动

截图
20210218151708

如果可以,附上截图来描述你的问题

额外的细节和日志

  • 版本:1.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/portalapollo-portalkind/report-problemCategorizes issue when someone report the problem he/she meeted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions