java.lang.IllegalStateException: No parent defined yet (please use the other overloaded parent methods to set one)

Stack Overflow | Mamatha V Rao | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Run multiple spring boot applications with different context paths under one port

    Stack Overflow | 7 months ago | Mamatha V Rao
    java.lang.IllegalStateException: No parent defined yet (please use the other overloaded parent methods to set one)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No parent defined yet (please use the other overloaded parent methods to set one)

      at org.springframework.boot.builder.SpringApplicationBuilder.runAndExtractParent()
    2. Spring Boot
      SpringApplicationBuilder.sibling
      1. org.springframework.boot.builder.SpringApplicationBuilder.runAndExtractParent(SpringApplicationBuilder.java:224)
      2. org.springframework.boot.builder.SpringApplicationBuilder.sibling(SpringApplicationBuilder.java:247)
      2 frames
    3. com.example
      MainBootAppApplication.main
      1. com.example.MainBootAppApplication.main(MainBootAppApplication.java:16)
      1 frame