|
@@ -45,9 +45,14 @@ public class LoginController extends BaseController {
|
|
|
@Value("${sysCity:#{null}}")
|
|
|
public String sysCity;
|
|
|
|
|
|
+ //登录地址
|
|
|
@Value("${login.url:#{null}}")
|
|
|
public String loginUrl;
|
|
|
|
|
|
+ //退出登录后的跳转地址
|
|
|
+ @Value("${logout.url:#{null}}")
|
|
|
+ public String logoutUrl;
|
|
|
+
|
|
|
@Autowired
|
|
|
private SessionService sessionService;
|
|
|
|
|
@@ -203,7 +208,10 @@ public class LoginController extends BaseController {
|
|
|
} catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- return "redirect:/login";
|
|
|
+ //return "redirect:/login";
|
|
|
+
|
|
|
+ //添加退出登录后的跳转地址
|
|
|
+ return "redirect:" + logoutUrl;
|
|
|
}
|
|
|
|
|
|
@GetMapping("/main")
|