如何用本地分支替换远程分支。如果远程分支中有本地分支中不存在的文件,则将其删除。替换所有内容(文件、提交)。我打算删除远程分支,然后再次创建它并应用推送,但我不知道这是否是正确的方法。谢谢
我正在使用本教程来处理实体继承。我有扩展用户实体的个人和公司实体。
@Entity
@Inheritance
public abstract class User {
@Id
private long id;
@NotNull
private String email;
// getters and settres
}
@Entity
public class Person extends User {
private int age;
// getters and settres and other attributs
}
@Entity
public class Company extends User {
private String companyName;
// getters and settres and other attribut
}
Run Code Online (Sandbox Code Playgroud)
然后是扩展 UserBaseRepository 的 UserRpository 、PersonRepository 和 Company Repository。
@NoRepositoryBean
public interface UserBaseRepository<T extends User>
extends CrudRepository<T, Long> {
public T findByEmail(String …Run Code Online (Sandbox Code Playgroud) 我正在按照本教程在meta react的本机应用程序中集成 Fabric crashlytics.但是在安装Fabric软件包之后,我试着在app上吃午饭,我收到了这个错误:react-native install react-native-fabricnpm run android
配置项目':react-native-fabric'时出现问题.
无法解析所有配置文件':react-native-fabric:classpath'.
找不到lint-gradle-api.jar(com.android.tools.lint:lint-gradle-api:26.1.2).在以下位置搜索:https: //jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
我的build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
googleServicesVersion = "17.1.0"
}
repositories {
maven { url 'https://maven.fabric.io/public' }
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
jcenter()
}
dependencies {
classpath …Run Code Online (Sandbox Code Playgroud) android ×1
crashlytics ×1
git ×1
gitlab ×1
jpa ×1
react-native ×1
spring ×1
spring-boot ×1
spring-data ×1