main
parent
a5e07c777e
commit
95841b0ad4
@ -0,0 +1,19 @@
|
||||
package com.tamguo.modules.sys.web;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import com.tamguo.modules.sys.utils.ShiroUtils;
|
||||
|
||||
@Controller
|
||||
public class LogoutController {
|
||||
|
||||
@RequestMapping(path="logout")
|
||||
public ModelAndView logout(ModelAndView model) {
|
||||
ShiroUtils.logout();
|
||||
model.setViewName("login");
|
||||
return model;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue