我有一个棘手的问题:

我无法设置有效的断点.不在测试中,也不在我的Java类中.我搜索了Stackoverflow和谷歌,但我找不到任何有同样问题的人.
我正在使用STS(x86)和Maven.
编辑:这可能看起来令人困惑,但我自己解决了.我必须去Run-> Skip all Breakpoints(它被设置了,我想知道它是如何设置的,因为我没有这样做)
从现在到现在,我的Maven 2开始乱七八糟.
我正在使用SPring STS 2.6.1并且有一个基于Spring 3,Hibernate,DWR,Cometd的项目以及所有这些东西.
今天我刚从Git突然更新mvn,我的项目旁边有一个可怕的感叹号(!).
点击"Project - > Maven - > Update dependencies"后我收到:
24.05.11 15:26:58 MESZ: Missing artifact org.jdom:jdom:jar:1.1:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-common:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-core:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-solrj:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact stax:stax:jar:1.2.0:compile
24.05.11 15:26:58 MESZ: Missing artifact stax:stax-api:jar:1.0.1:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-analyzers:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-core:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-highlighter:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: Missing artifact org.apache.solr:solr-lucene-queries:jar:1.3.0:compile
24.05.11 15:26:58 MESZ: …Run Code Online (Sandbox Code Playgroud) 我开始配置我的开发环境,我使用的是Spring Tool Suite 2.8.1和m2E 1.01.
据我所知,由于这是一个Maven项目(我的第一个),我的Maven POM正在指示(以及m2E smarts)我的项目构建配置和依赖项.
我想知道的是,为什么我的IDE显示Java Build Problems,当我在.m2中看到jar时,显示"库库/路径/ somejar.jar所需的存档无法读取或不是有效的zip文件"库?
所有错误都与commons-logging:1.1.1有关,我将其排除在父p-pom之外.这是通过spring-context-support支持的转换依赖:3.0.5.我从我的构建中排除了该库,现在错误与spring-context-support库有关.
我附上了截图来说明.

我已经在MacBook Pro上运行STS 2.3.2几天了.我发现性能要比我用过的任何其他Eclipse版本慢得多.例如,从一个标签切换到另一个标签最多可能需要4秒钟.
我试图关闭大部分验证,并增加内存,但它并没有什么不同.
其他人有类似的经历吗?
显然,仪表板本身就是一个切换开关,但是已经不见了,我在首选项中找不到任何东西.我正在使用2.5.2版.
我知道这真的不是什么大不了的事,但是如果你抓住我的漂移,一遍又一遍地关闭那扇窗户就会让杰克成为一个沉闷的男孩.
任何人都可以建议使用Pivotal tc Server的优缺点,而不仅仅是使用Spring-MVC Java Web应用程序的vanilla Tomcat?除了在他们的网站上发现很少关于Pivotal 以及它作为Spring Tool Suite的一部分打包的事实.缺乏信息让我对依赖它有点担心......
背景:正在为Spring-MVC项目准备开发环境,目前正在评估是使用打包的Spring Tool Suite(STS)还是仅使用最新的Eclipse(可能与Eclipse STS插件结合使用).作为此插件中的可选组件之一,我将Pivotal tc Server作为其中一个.
java tomcat sts-springsourcetoolsuite spring-tool-suite tcserver
如果我有一段代码
MyIdentifierIsNice(OtherThingAlsoNice isBetterThen);
我想在Eclipse中停止Ctrl-Left的行为:
My|Identifier|Is|Nice|(|Other|Thing|Also|Nice is|Better|Then|);|
到这里:
MyIdentifierIsNice(|OtherThingAlsoNice |isBetterThen);|
......或者至少不是那么频繁.其他变体也可以,例如:
MyIdentifierIsNice|(|OtherThingAlsoNice| isBetterThen|);|
主要是它应该停止考虑CamelCaseIdentifier由几个单词组成,用于通过Next-Word进行导航,等等.
我猜我使用的是SpringSourceSuite版本2.5.1,它是Eclipse 3.6.
我到处寻找并试图找到这个错误的根源,但我没有运气.我安装了Dali JPA Tools的Eclipse STS.我有一个连接HSQLDB和实体的项目.当我转到JPA透视图时,我的错误控制台中出现此错误:
Console configuration "" does not exist.
这是什么意思?
谢谢.
我们完全按照Spring Data文档中的说明实现了我们的存储库.一切都很好,直到我们从STS 2.9升级到STS 3.1.所有使这些错误消失的尝试都失败了,在某些情况下它们甚至没有意义!它们与界面或使用的实体中的任何属性都不匹配!
这是一个例子:
public interface CreditNotesRepository extends JpaRepository<CreditNotes, Long> {
CreditNotes findCurrentCreditNotes(Long shipmentDetailId);
}
Run Code Online (Sandbox Code Playgroud)
这findCurrentCreditNotes是我们实体中的命名查询.这段代码执行得很好.
@NamedQueries({
@NamedQuery(name = "CreditNotes.getCount", query = "SELECT COUNT(f) FROM CreditNotes f"),
@NamedQuery(name = "CreditNotes.findCurrentCreditNotes", query =
"SELECT creditNotes FROM CreditNotes creditNotes"
+ " WHERE creditNotes.shipmentDetail.shipmentDetailId = ?1 "
+ " AND creditNotes.notesSeqNumber = (SELECT max(creditNotes2.notesSeqNumber) FROM CreditNotes creditNotes2"
+ " WHERE creditNotes.shipmentDetail.shipmentDetailId = creditNotes2.shipmentDetail.shipmentDetailId)")
})
Run Code Online (Sandbox Code Playgroud)
我们得到的错误:
Invalid derived query! No property find found for type ca.cole.freight.model.CreditNotes
Run Code Online (Sandbox Code Playgroud)
虽然这只是一个标志(不影响编译),但令人讨厌并且令人困惑.任何人都可以对此有所了解吗?并向我解释,就像我6岁!;)
spring spring-mvc sts-springsourcetoolsuite spring-data spring-data-jpa
我没有任何其他问题与Java和STS启动正常,但当我尝试运行我的应用程序"Run as Spring Boot App"(或任何样本),控制台是空的长达5分钟,然后我得到熟悉的"春天启动"ASCII艺术.然后它工作正常.
eclipse ×5
java ×3
m2eclipse ×2
maven ×2
spring ×2
breakpoints ×1
dali ×1
editor ×1
ide ×1
jpa ×1
m2e ×1
spring-boot ×1
spring-data ×1
spring-ide ×1
spring-mvc ×1
springsource ×1
tcserver ×1
text-editor ×1
tomcat ×1