Skip to content

Commit

Permalink
Global.getInstance() 修改Global 没有私有构造函数,实现懒汉式单例模式.在第一次调用的时候实例化自己!
Browse files Browse the repository at this point in the history
  • Loading branch information
smallyaohailu committed Jan 5, 2018
1 parent 0ceca17 commit 3688e51
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ public String info(User user, HttpServletResponse response, Model model) {
model.addAttribute("message", "保存用户信息成功");
}
model.addAttribute("user", currentUser);
//修改Global 没有私有构造函数,实现懒汉式单例模式.在第一次调用的时候实例化自己!
model.addAttribute("Global", Global.getInstance());
return "modules/sys/userInfo";
}
Expand Down

0 comments on commit 3688e51

Please sign in to comment.