postman 调试pigx

1.Postman 
(1) Post  http://localhost:5635/admin/timeLineData/setTimeLine2)Headers Content-Type  application/json
(3)Body  Raw  JSON
{
    "receiveBillId": "1",
    "billId": "2",
    "createTime": "2023-05-31 23:59:59",
    "type": "会议"
}
(4)
{
    "timestamp": "2024-03-07 10:58:10",
    "status": 404,
    "error": "Not Found",
    "path": "/admin/timeLineData/timeLineData/setTimeLine"
}
2.后台

@RequiredArgsConstructor
@Component
@RequestMapping("/timeLineData" )
public class TimeLineData {
	final CustomSqlService customSqlService;

	@Inner(false)
	@PostMapping("/setTimeLine")
	public void setTimeLine(@RequestBody Map<String,Object> map){
		Calendar calendar= Calendar.getInstance();
		SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");

		System.out.println("【"+dateFormat.format(calendar.getTime())+"】----- 时间轴开始 ----");
	}

	/** 会议 **/
	void setMeeting(){
		Calendar calendar= Calendar.getInstance();
		SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");

		String sNowTime = "【"+dateFormat.format(calendar.getTime())+"】";
		String sExplain = " |会议| ->  ";

		try {
			//System.out.println("【"+dateFormat.format(calendar.getTime())+"】 定时任务: |会议|活动|通知| -> 定时短信 ");
			//log.error("【"+dateFormat.format(calendar.getTime())+"】 定时任务: |会议|活动|通知| -> 定时短信 ");

		}catch (Exception e){
			e.printStackTrace();

			System.out.println(sNowTime + sExplain + ":"+e.getMessage());
		}
	}

}

posted @   寒冷的雨呢  阅读(43)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
历史上的今天:
2023-03-07 JS之clientX,clientY,screenX,screenY,offsetX,offsetY区别测试
2023-03-07 el-tree 右键菜单
2023-03-07 微服务配置
2023-03-07 div相关设置
2022-03-07 Driver com.mysql.jdbc.Driver claims to not accept jdbcUrl
2022-03-07 java.sql.SQLNonTransientConnectionException:Could not create connection to database server解决
2022-03-07 com.mysql.cj.jdbc.exceptions.SQLError.createSQLException
点击右上角即可分享
微信分享提示