Class RunningConfigUtils

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>

    @Component
    public class RunningConfigUtils
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
    Running config
    Author:
    nkorange
    • Constructor Detail

      • RunningConfigUtils

        public RunningConfigUtils()
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.boot.web.context.WebServerInitializedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
      • getServerPort

        public static int getServerPort()
      • getContextPath

        public static String getContextPath()
      • getClusterName

        public static String getClusterName()
      • setServerPort

        public static void setServerPort​(int serverPort)
      • setContextPath

        public static void setContextPath​(String contextPath)