类 ApplicationUriPrinter

java.lang.Object
org.ssssssss.magicapi.spring.boot.starter.ApplicationUriPrinter
所有已实现的接口:
org.springframework.boot.CommandLineRunner

@Component @ConditionalOnProperty(name="magic-api.show-url", havingValue="true", matchIfMissing=true) @Order public class ApplicationUriPrinter extends Object implements org.springframework.boot.CommandLineRunner
输出服务访问地址
从以下版本开始:
1.2.1
作者:
冰点
  • 字段详细资料

    • port

      @Value("${server.port:8080}") private int port
    • contextPath

      @Value("${server.servlet.context-path:}") private String contextPath
    • properties

      @Autowired private MagicAPIProperties properties
  • 构造器详细资料

    • ApplicationUriPrinter

      public ApplicationUriPrinter()
  • 方法详细资料

    • run

      public void run(String... args) throws Exception
      指定者:
      run 在接口中 org.springframework.boot.CommandLineRunner
      抛出:
      Exception