java 加载bean 2

@RequiredArgsConstructor
@Component
@RequestMapping("/timeLineData" )
public class TimeLineData {
	final CustomSqlService customSqlService;
	
	@Inner(false)
	@PostMapping("/setTimeLine")
	void setTimeLine(@RequestBody Map<String,Object> map){
		Calendar calendar= Calendar.getInstance();
		SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
		
	}
	
	@ResponseBody
	@GetMapping("/isCurrentUserRole")
	public boolean isCurrentUserRole(Long role){
		RunshiUser runshiUser = SecurityUtils.getUser();
		boolean result = false;
		
		return result;
	}
}
posted @ 2024-05-27 14:48  寒冷的雨呢  阅读(8)  评论(0编辑  收藏  举报