目前 Javers 在提交元数据中记录审计的用户名和时间戳,但我也想存储用户 ID。是否可以向 Javers 提交元数据添加更多字段,例如用户 ID 或 IP 地址?
我的项目中有以下 REST 控制器方法
@RequestMapping(method = GET, value = "applications", produces = {MediaType.APPLICATION_JSON_VALUE})
public @ResponseBody
ResponseEntity<?> getApplications(@QuerydslPredicate(root = Application.class) Predicate predicate,
PersistentEntityResourceAssembler resourceAssembler, Pageable page) {
Page<ApplicationProjection> applications = appRepo.findAll(predicate, page).
map(item -> projectionFactory.createProjection(ApplicationProjection.class, item));
return new ResponseEntity<>(pagedResourcesAssembler.toResource(applications), HttpStatus.OK);
}
Run Code Online (Sandbox Code Playgroud)
现在我想根据条件删除页面的一些元素。如何在 Spring Data Rest 中实现?
我正在构建的GUI界面上有以下JButton.

我想让按钮周围的边框更厚,这样它就会从背景中脱颖而出.是否可以在Java中执行此操作?
我有以下代码用于JFormattedTextField接受用户输入的日期。
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
JFormattedTextField DOB = new JFormattedTextField(df);
Run Code Online (Sandbox Code Playgroud)
现在我如何从JFormattedTextField用户提交表单时读取日期?
例如,如果它是JTextField我们使用的fieldname.getText().