public static String modId(ConfigurableEnvironment environment, ServerProperties serverProperties) {

        String applicationName = environment.getProperty("spring.application.name");
        applicationName = StringUtils.hasText(applicationName) ? applicationName : "application";
        return applicationName + ":" + serverPort(serverProperties);
    }
public static String modId(ConfigurableEnvironment environment, ServerProperties serverProperties) {

        String applicationName = environment.getProperty("spring.application.name");
        applicationName = StringUtils.hasText(applicationName) ? applicationName : "application";
        return applicationName + ":" + serverPort(serverProperties);
    }
public static String modId ( ConfigurableEnvironment environment , ServerProperties serverProperties ) { String applicationName = environment . getProperty ( "spring.application.name" ) ; applicationName = StringUtils . hasText ( applicationName ) ? applicationName : "application" ; return applicationName + ":" + serverPort ( serverProperties ) ; }
模块标识

@param environment      Spring Env
@param serverProperties serverProperties
@return 标识
模块标识