mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 19:54:00 +09:00
aop로 권한 적용되게 추가
This commit is contained in:
@@ -1,12 +1,30 @@
|
||||
package com.no1.wms.base;
|
||||
|
||||
import com.no1.wms.account.AccountDto;
|
||||
import com.no1.wms.account.AccountService;
|
||||
import com.no1.wms.authority.AuthorityDto;
|
||||
import com.no1.wms.authority.AuthorityService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.util.HashMap;
|
||||
|
||||
@Controller
|
||||
public class BaseController {
|
||||
|
||||
@GetMapping("/")
|
||||
public String base(){
|
||||
return "base/hello";
|
||||
public ModelAndView base(HttpServletRequest request, ModelAndView mav){
|
||||
|
||||
mav.addObject("userData", request.getSession().getAttribute("userData"));
|
||||
|
||||
mav.setViewName("base/hello");
|
||||
|
||||
return mav;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user