vendredi 23 août 2019

How can I get a HTML Page from Spring using Ember. How to request a html page?

I have a login.html page in Spring. I have a controller to serve this page at port 8080. How can I get this complete page using ember?

This is my controller:

@Controller
public class LoginController {

    LoginService loginService;

    public LoginController(LoginService loginService) {
        this.loginService = loginService;
    }

    @RequestMapping("/login")
    public String showJoke(Model model){

        model.addAttribute("date",loginService.getDate());

        return "login";
    }
}

I didn't write any code on ember yet because I don't know where to write them( on controller or model or component)




Aucun commentaire:

Enregistrer un commentaire