Whitelabel Error Page - Java Spring Boot Project Error

Asked

Viewed 67 times

0

Good afternoon, I’m new here, and I’m starting to study java, I’m trying to climb an initial application with spring boot, but I’m with the error Whitelabel Error Page, I tried to solve by some internet tutorials, but nothing solved, already moved the application to the beginning, already added @Springbootapplication(scanBasePackages = 'path'), but the error persists, follows below my class:

package com.evento.evento;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    
    @RequestMapping("/mostrar")
    public String index() {
        return "index";//busca a pagina html
    }
}
  • if api, swap the Requestmapping annotation with @Getmapping("/show") and @Responsebody

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.