postman 调试pigx
1.Postman
(1) Post http://localhost:5635/admin/timeLineData/setTimeLine
(2)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());
}
}
}
择善人而交,择善书而读,择善言而听,择善行而从。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 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