Springboot+Flowable项目实战记录
原因:项目中使用SpringSecurity来实现了登录功能,当你调用 taskService.addComment() 方法而没有显式传入 userId 时,Flowable 会自动将当前 “认证用户”(Authenticated User)的 ID 作为评论的创建者。1.taskservice.addComment(str1,str2,str3,str4)方法并未显示传入Comment类的userId属性的值,但是为什么根据processInstanceId查询到的comment,能拿到userId?
原创
2025-11-21 09:38:59 ·
204 阅读 ·
0 评论