'spring boot MVC: how to redirect to a view

I try to do a java web application using SpringBoot and the MVC pattern. How to redirect to a view (html page) from this kind of function located in my controller:

@RequestMapping(value="/authentification", method= RequestMethod.POST)
    public @ResponseBody void logData(LoginForm lgf){
        if(diaDao.loggin(lgf.getMail(), lgf.getMdp()))
            //home
        else
            //loginPage
 
    }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source