-1

Hello.groovy file: -

@RestController
class ThisWillActuallyRun {

    @RequestMapping("/")
    String home() {
        "Hello World!"
    } 

}   

This is the output in Command Prompt which shows application failed to start

MaartenDev
  • 5,631
  • 5
  • 21
  • 33
  • Welcome Mit. Could you please copy the error message and post it, instead of uploading an image of it? Makes it easier to copy. – gmauch Sep 24 '19 at 12:58
  • Possible duplicate of [How to configure port for a Spring Boot application](https://stackoverflow.com/questions/21083170/how-to-configure-port-for-a-spring-boot-application) – Mike Sep 24 '19 at 13:09

1 Answers1

0

Check if you have already some server running on that port (8080).

Or configure an another port in

src/main/resources/application.properties

Add this:

server.port=8073
JetBrains
  • 456
  • 2
  • 6
  • 18