这是我第一次这样做.我在eclipse中导入了一个git项目.然后我使用shell创建另一个分支并结帐到新分支.
是否在Eclipse中刷新导入的项目足以告诉Eclipse我们正在处理新创建的分支?
谢谢
我从这里下载了Spring Toolset 3.6:
https://spring.io/tools/sts/all
Run Code Online (Sandbox Code Playgroud)
解压缩它,启动sts.exe并出现此错误:
---------------------------
STS
---------------------------
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run STS. No Java virtual machine
was found after searching the following locations:
D:\Setup\spring36\sts-bundle\sts-3.6.3.RELEASE\jre\bin\javaw.exe
javaw.exe in your current PATH
---------------------------
OK
---------------------------
Run Code Online (Sandbox Code Playgroud)
我有以下版本的(32位)java
C:\Users\Chad>java.exe -version
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode, sharing)
Run Code Online (Sandbox Code Playgroud)
我尝试将以下两行添加到STS.ini的顶部:
-vm
C:\Windows\SysWOW64\javaw.exe
Run Code Online (Sandbox Code Playgroud)
并得到此错误:
---------------------------
STS
---------------------------
Java was started but returned exit …Run Code Online (Sandbox Code Playgroud) 我使用的是Spring Tools Suite 3.6.SR1.我按菜单仪表板,按:"IDE EXTENSIONS"选中"Gradle support",按安装:


以下连接器不可用:Gradle支持继续安装?

Error:
Problems occurred while performing installation: Operation details
Operation details
Cannot complete the request. See the error log for details.
Run Code Online (Sandbox Code Playgroud)
日志:
!SESSION 2015-01-20 00:40:01.245 -----------------------------------------------
eclipse.buildId=3.6.3.201501121239-SR1-e44
java.version=1.8.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.springsource.sts.ide
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.springsource.sts.ide
!ENTRY org.eclipse.core.runtime 2 0 2015-01-20 00:41:39.394
!MESSAGE Authorization infrastructure (org.eclipse.core.runtime.compatibility.auth) not installed.
!STACK 0
java.lang.ClassNotFoundException: org.eclipse.core.internal.runtime.auth.AuthorizationDatabase cannot be found by org.eclipse.core.runtime_3.10.0.v20140318-2214
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
at …Run Code Online (Sandbox Code Playgroud) 我已经将maven项目转换为gradle,我正在使用Spring工具套件并且所有依赖项jar都已成功上载.当我构建项目时,它已成功构建.但我不知道如何运行这个Web应用程序,我试图做一个战争,以便我可以使用tomcat进行部署,我找到了tomcat插件,但是当我在build.gradle文件中插入tomcat插件时,它给出了我的错误: 找不到tomcat id的插件
请帮助我刚刚被卡住的人,我假设它的结构与gradle相同,因为我使用jsp页面和xml文件,我可以将这些文件保存在我的资源文件夹中.
如何在tomcat中使用eclipse-wtp创建项目的war文件并进行部署?
我想要它似乎应该是一个简单的问题,但我一直在罢工......
在Eclipse 3.8/STS 3.1中,如何阻止Eclipse在编辑器选项卡中截断文件名.我不知道哪个标签是哪个.提前致谢.
STS 3.5.0存在问题
https://issuetracker.springsource.com/browse/STS-3792
org.codehaus.groovy.eclipse 2.9.0.xx-201403261719-e43j8在解算器中未知!
这些是我修复它的步骤,它允许我使用eclipse市场
我按照Spring Tool Suite 3.6.4中的Spring Boot支持中的说明进行操作,最后得到了一个有几个问题的Eclipse项目.第一个问题是,当我右键单击包含"main"条目方法的类并选择"Run As"选项时,我得到的唯一条目是后备"Run Configurations ..."方法.我既没有选择将它作为"Spring Boot App"或"Java Application"运行.
我的问题是如何根据该站点中的说明创建项目或我该怎么做以获得该运行方式选项?
除上述信息外,我还应补充以下内容:
当最初创建pom.xml时,它显然有一个错误,因为m2e想要的配置丢失,我需要添加以下内容:
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<versionRange>[3.1,)</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Run Code Online (Sandbox Code Playgroud)看起来Eclise项目也没有为Java应用程序正确配置.Java src树没有配置.下面是.project文件:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>demo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription> …Run Code Online (Sandbox Code Playgroud)我正在尝试用Gradle做一个小项目,以便熟悉它.我有很多Maven的经验,所以基础知识显而易见.
但是,我遇到了工具问题.我的问题是:Eclipse的.gradle文件是否有适当的内容辅助?
我尝试过STS,声称它有gradle支持,但是当我创建一个新的gradle项目时,我得到了一个NoClassDefFoundError.所以我安装了一个gradle插件,我还安装了Groovy(经过一系列失败的尝试后我找到了正确的版本),现在我有着色,但没有内容辅助.我也试过Buildship - 同样的事情.在之前的版本(2.9)中,STS 似乎已经为gradle 启用了"启用DSL",但该选项不再可用,或者我找不到它.
简而言之 - 我尝试了多种选择,但没有一种方法可以探索gradle语法,例如支持XSD的XML编辑器可以为Maven做.
当我尝试在Spring Tool Suite中创建我的第一个应用程序时,我收到以下错误:
此行中有多个标记 - 无法解析org.springframework.context.ConfigurableApplicationContext类型.它是从所需的.class文件间接引用的 - 来自类型的方法run(Object,String ...)SpringApplication引用了缺少的类型ConfigurableApplicationContext
这是以下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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.welcome</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>welcome</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
This is the Controller Used
package com.welcome.demo;
import org.springframework.boot.SpringApplication;
import …Run Code Online (Sandbox Code Playgroud) 我在 Spring 项目中使用 lombok 并使用 gradle 进行构建。之前所有的事情都运转良好。突然出现一些错误。
错误是“构造函数(构造函数名称)未定义”。
已经给出了所有 DTO @Data、@NoArgsConstructor、@AllArgsConstructor,因此理想情况下所有构造函数都应该可用。
我尝试使用新旧版本的 Spring 工具套件构建项目,并更改了 lombok jar。但仍然会出现相同或不同的错误。
尝试使用STS4和STS 3.9.7,3.9.8出现同样的问题。尝试过龙目岛 1.16.22、1.18.0、1.18.2、1.18.8。
请帮我解决这个问题。