com.google.firebase.database.DatabaseException:无法将java.lang.Long类型的值转换为String
是在尝试将数据检索到对象以供使用时遵循文档时遇到的错误.
这是我的对象模型
public class User {
private String tour_director_key;
private String last_name;
private String location_latitude;
private String tour_id;
private String photo;
private String tour_director_name;
private String middle_name;
private String location_longitude;
private String passenger_id;
private long location_updated;
private String tour_director;
private String email;
private String first_name;
private String mobile_phone;
private String td_id;
public User() {
// empty default constructor, necessary for Firebase to be able to deserialize users
}
public String getTour_director_key() {
return tour_director_key;
}
public String getLast_name() { …Run Code Online (Sandbox Code Playgroud) 我之前一直在生成新的 Angular 项目,但我从未.angulardoc.json在生成 Angular 项目的文件夹中看到过文件。
最近,我将我的 angular Cli 升级到以下内容
Angular CLI: 9.0.1
Node: 12.13.0
OS: win32 x64
Angular: 9.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.900.1
@angular-devkit/build-angular 0.900.1
@angular-devkit/build-optimizer 0.900.1
@angular-devkit/build-webpack 0.900.1
@angular-devkit/core 9.0.1
@angular-devkit/schematics 9.0.1
@angular/cli 9.0.1
@ngtools/webpack 9.0.1
@schematics/angular 9.0.1
@schematics/update 0.900.1
rxjs 6.5.4
typescript 3.7.5
webpack 4.41.2
Run Code Online (Sandbox Code Playgroud)
现在,当我生成一个新项目时,我会在生成项目的.angulardoc.json文件夹所在的文件夹中看到一个文件。
该文件包含一个具有两个键的对象:repoId一个是自动生成的键,lastSync另一个0是现在的值。
这个文件的目的是什么?这是 VSCode 的东西还是 Angular …
我对 GitHub actions 和 Redis 还很陌生。我正在 GitHub 操作上运行此 CI(代码如下)
name: sanity check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
redis-version: [6]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
- uses: supercharge/redis-github-action@1.2.0 # sets up Redis
with:
redis-version: ${{ matrix.redis-version }}
- run: node -v
- run: yarn -v
# - run: redis-cli ping
- run: yarn install
- run: yarn test --detectOpenHandles
Run Code Online (Sandbox Code Playgroud)
这样我就可以使用 Redis 执行集成测试,但是这个 CI 不会退出(我正在使用 Jest 运行测试) …