使用 Vaadin 14 当我尝试执行以下代码时遇到以下错误
UI current = UI.getCurrent();
Thread th = new Thread(() -> {
UI.setCurrent(current);
current.access(() -> {
//calling my service to save the data
current.push();
});
});
th.start();
Run Code Online (Sandbox Code Playgroud)
我遇到上述错误的情况非常罕见,但需要将其删除,如 UI 中所示。
| 归档时间: |
|
| 查看次数: |
273 次 |
| 最近记录: |