# GsMallSpringboot **Repository Path**: qhdzz/gs-mall-springboot ## Basic Information - **Project Name**: GsMallSpringboot - **Description**: 鲜蔬商场后台 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-12-10 - **Last Updated**: 2023-02-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目注意点 * 处理前端传过来的时间 ```java //格式化时间,所有从前端传过来的时间都要进行格式化 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); LocalDateTime start_time_ok = LocalDateTime.parse(start_time, formatter); LocalDateTime end_time_ok = LocalDateTime.parse(end_time, formatter); ``` * 获得雪花id ```java long snowId = SnowFlake.nextId(); ``` * 需要登陆的注释 ```java @RequiresAuthentication ``` * 需要角色权限的注释 ```java @RequiresRoles(value = {"admin"}) @RequiresRoles(value = {"admin","user"},logical = Logical.AND) @RequiresRoles(value = {"admin","user"},logical = Logical.OR) ``` * 活动Token里面的用户id ```java Long id = ShiroUtil.getProfile().getId(); ```