When I try to go localhost:8080/ I got whitelabel error.
My Controller:
package com.example.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class FormController {
@RequestMapping("/")
public String login() {
return "Hello, World!";
}
}
I tried using different ports too.
My dependencies: Spring Web, Spring Web Services, Jersey, Spring Data JPA and H2 database.
I am about to lose it so please help me.