我使用Eclipse Indigo和Windows 7以及Eclipse的插件egit/jgit.
如何在egit中更改用户位置?我应该这样做,因为它包含特殊字符,不理解egit.我想要"C:\ git\home\.gitconfig"而不是"C:\ Users \Кирилл\ .gitconfig".我该怎么做?当我按下"打开"时没有任何反应.
在下一个标签"存储库设置"中,我也没有改变任何东西.
谁能解释一下这个?
我有几个班:
abstract class Animal {
public void eat() {
System.out.println("Animal is eating");
}
}
class Dog extends Animal {
public void woof() {
System.out.println("woof");
}
}
class Cat extends Animal {
public void meow() {
System.out.println("meow");
}
}
Run Code Online (Sandbox Code Playgroud)
这就是行动:
import java.util.ArrayList;
import java.util.List;
public class TestClass {
public static void main(String[] args) {
new TestClass().go();
}
public void go() {
List<Dog> animals = new ArrayList<Dog>();
animals.add(new Dog());
animals.add(new Dog());
doAction(animals);
}
public <T extends Animal> void doAction(List<T> animals) { …Run Code Online (Sandbox Code Playgroud) 当我尝试使用以下参数创建Maven项目时: Archetype Group Id - org.codehaus.mojo; Archetype Artifact Id - gwt-maven-plugin; 原型版本 - 2.3.0-1. 我收到一些奇怪的错误:
生命周期配置未涵盖的插件执行:org.codehaus.mojo:gwt-maven-plugin:2.3.0-1:generateAsync(执行:默认,阶段:生成源)
生命周期配置未涵盖的插件执行:org.codehaus.mojo:gwt-maven-plugin:2.3.0-1:i18n(执行:默认,阶段:生成源)
生命周期配置未涵盖的插件执行:org.apache.maven.plugins:maven-war-plugin:2.1.1:爆炸(执行:默认,阶段:编译)
还有一些警告:
无法找到项目facet jst.web的实现.功能将受到限制.
无法找到项目方面wst.jsdt.web的实现.功能将受到限制.
这是我的pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!-- POM file generated with GWT webAppCreator -->
<modelVersion>4.0.0</modelVersion>
<groupId>net.test1</groupId>
<artifactId>TestWebApp</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>GWT Maven Archetype</name>
<properties>
<!-- Convenience property to set the GWT version -->
<gwtVersion>2.3.0</gwtVersion>
<!-- GWT needs at least java 1.5 -->
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version> …Run Code Online (Sandbox Code Playgroud)