Good afternoon! I\'m starting spring studies, I\'m following a tutorial the same way, but it returns an error:
Folder structure:
The strange th
Make sure that your main class is in a root package above other classes.
When you run a Spring Boot Application, (i.e. a class annotated with @SpringBootApplication), Spring will only scan the classes below your main class package.
So your declaration goes like this
package br.com.SpringApp.SpringApp;
inside this main class i.e SpringAppApplication
package br.com.SpringApp.SpringApp.controller;
name of your controllers i.e EventoController & indexControllers
package br.com.SpringApp.SpringApp.model;
name of your models i.e Evento
After This clean your project and re-run spring boot application;