Browse Source

启动 BUG

master
DouDou 4 months ago
parent
commit
b6b41e1eca
  1. 4
      src/main/java/com/spring/config/LdapAccountInitLoad.java

4
src/main/java/com/spring/config/LdapAccountInitLoad.java

@ -75,7 +75,9 @@ public class LdapAccountInitLoad implements ApplicationRunner{
} catch (NamingException e) { } catch (NamingException e) {
logger.error("Failed to connect to the LDAP server."); logger.error("Failed to connect to the LDAP server.");
} finally{ } finally{
ctx.close();
if (null != ctx){
ctx.close();
}
} }
} }

Loading…
Cancel
Save