| | |
| | | import com.whyc.constant.YamlProperties; |
| | | import com.whyc.pojo.db_user.User; |
| | | import com.whyc.service.UserLogService; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.apache.shiro.subject.Subject; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @Component |
| | | public class CommonUtil { |
| | | |
| | | public static Object nullObject = null; |
| | | private static UserLogService userLogService; |
| | | |
| | | @Autowired |
| | |
| | | user = new User(); |
| | | user.setName("unlogged_user"); |
| | | user.setId(0); |
| | | user.setRole(1); |
| | | } |
| | | return user; |
| | | } |