Posiadam w resources w folderze templates folder login.html. Chciałbym tą stronę wywołać metodą w kontrolerze
@RestController
public class Company {
@RequestMapping("login")
public String company() {
return "login";
}
}
@SpringBootApplication
public class ComJonkSpringBootMvcApplication {
public static void main(String[] args) {
SpringApplication.run(ComJonkSpringBootMvcApplication.class, args);
}
}
jednak zamiast wywołać stronę, to wypisuje mi na stronie tekst "login".