Demo Application

Learn about SpringBootApplication.

We'll cover the following...

SpringBootApplication

The main class is specified by annotating it with @SpringBootApplication. Create a file named “DemoApplication.groovy” in the com.example.demo package, and put the following:

package com.example.demo

import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication


@SpringBootApplication
class
...