问题标签 [springsource]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
13 回答
89098 浏览

java - System.console() 返回 null

我正在使用readLineofBufferedReader从用户那里获取输入/新密码,但想掩盖密码,所以我正在尝试使用java.io.Console类。问题是在 Eclipse 中调试应用程序时System.console()返回。null我是 Java 和 Eclipse 的新手,不确定这是实现的最佳方式吗?我右键单击源文件并选择“调试为”>“Java 应用程序”。有什么解决方法吗?

0 投票
1 回答
2360 浏览

eclipse - Eclipse:使选项卡可见,空间不可见

通常我只想用 Spaces编辑文件。

但是当我用 Tabs打开文件时,我想看到它们(例如箭头->)。对于这些文件,我会小心地进行编辑,以免破坏原始作者的编码风格——通常我会在需要时手动插入标签。

所以,我想一直看到选项卡,但是使用常规、编辑器、文本编辑器、显示空白字符选项,我会被所有的空白点分心。

如何减少 Spaces 的干扰,同时又能看到 Tabs?

  • 我可以将可视化空白的字体颜色更改为更亮的颜色吗?目前它们是中等灰色,但我找不到改变它的选项。
  • 或者我可以为制表符和空格(以及段落符号,就此而言)选择不同的设置吗?
  • 我以前在我的 goo'ol' 编辑器中使用它的方式是:将 Tab 的背景颜色更改为浅黄色(不显示标签的->标签或空格的点)。这使得 Tabs wuite 可见,而不会损害我的“正常”源可视化。这将是我的最爱。为此,我将 Tab 添加为所有语言的关键字,然后将关键字背景颜色更改为亮黄色。
0 投票
1 回答
1228 浏览

ivy - 使常春藤不下载源代码和许可证文件

有没有办法配置 ivy 不通过 ivy.xml 下载源代码和许可证文件?

我目前正在尝试使用默认的 ivy repos + spring 存储库。我的 ivysettings.xml 如下:

0 投票
1 回答
1912 浏览

java - 使用 Spring 的事务管理器回滚

我正在使用 Springs 的 TaskExecutor 类来执行数据库中一些条目的异步删除。所以基本上底层类的执行方法作为线程运行来执行异步删除。

在此方法中,我调用执行删除数据库条目的 bean 方法。我使用PROPAGATION.REQUIRED了 bean 方法中的默认 Transaction 属性。底层是我正在谈论的执行方法。基本上,一旦在 callig bean 方法之后发生任何异常或有人取消删除任务,我需要回滚整个数据库事务。

但是事情并没有按预期工作..实际上每次的结果也不一致,即有时代码卡在 bean 方法中。我无法理解发生了什么..有人请帮忙

0 投票
6 回答
2263 浏览

grails - Groovy 代码编辑器建议

我正在尝试学习Grails。我正在使用 SpringSource 工具套件。我希望在 IDE 中找到代码完成、语法高亮和更多类似的东西。没有那样的事!有什么建议吗?

0 投票
2 回答
4824 浏览

eclipse - xml 编辑器中的 Eclipse 自动完成

如何配置 Eclipse 以在 xml 编辑器中自动完成 Ctrl+Space 上的至少类完整路径?我正在使用springsource工具套件(它的同一个eclipse),IDE可以理解它何时是bean配置文件并自动完成工作。但是在xml文件的其他地方,这不起作用:(

0 投票
4 回答
20498 浏览

ide - 我可以在 SpringSource Tool Suite 启动时禁用 Dashboard 窗口吗?

仪表板本身显然曾经有一个拨动开关,但那已经消失了,我在首选项中找不到任何东西。我使用的是 2.5.2 版。

我知道这真的没什么大不了的,但是如果你明白我的意思的话,一遍又一遍地关闭那个窗口会让杰克开始变得迟钝。

0 投票
1 回答
46025 浏览

sts-springsourcetoolsuite - SpringSource Tool Suite (STS):如何通过 IDE 运行服务器和 Java 项目?

我正在使用最新版本的 SpringSource Tool Suite (STS)。我已经建立了一个Java项目。我的代码有一个打包 WAR 的 Ant 构建文件。我在 Mac 10.6.3 上本地安装了 Tomcat 6.0.24。有人可以指出我如何将我的项目从 IDE 部署到服务器上,并因此设置断点调试吗?

谢谢, - 戴夫

0 投票
0 回答
576 浏览

eclipse - Can't get a Static Web Project to be available in Servers 'Add and Remove' in SpringSource Tool Suite

I am trying to add a Static Web Site to my localhost server. But, I can't seem to get it to show up as a resource for me to add it to my server as a configured resource.

In the Eclipse project navigator, I select File-->New-->Project-->Web-->Static Web Project, I type in project 'XYZ', and click finish. Then, when I go to my servers view and click the localhost server, and click 'Add and Remove', my new project XYZ doesn't show up for me to select.

If I do a File-->New-->Project-->SpringSource Tool Suite-->Spring Template Project-->Spring MVC project, then STS creates the project and it shows up in the 'Add and Remove' window of the localhost server.

This little XYZ is a super simple site of one page and three graphics. I don't particularly want to have all the muss and fuss the fully dynamic Spring app involves.

But maybe I have to.

Thanks

0 投票
1 回答
3169 浏览

eclipse - 如何查找和安装 SpringSource for Eclipse 的缺失依赖项

我想安装 SpringSource,所以我给了它这个更新站点:http ://dist.springsource.com/release/TOOLS/update/e3.6 并使用了 selectAll ,现在它说由于缺少一些依赖项而无法继续安装。所以通常出现这样的错误,你如何回去找到需要先安装的东西?这个特定问题中的那些是什么?

无法完成安装,因为找不到一项或多项所需项目。正在安装的软件:SpringSource Tool Suite Grails Support 2.6.0.201103161000-RELEASE (com.springsource.sts.grails.feature.group 2.6.0.201103161000-RELEASE) 缺少要求:SpringSource Tool Suite Grails Editor Support (Core) 2.6.0.201103161000-RELEASE ( com.springsource.sts.grails.editor.groovy 2.6.0.201103161000-RELEASE) 需要 'bundle org.eclipse.jdt.groovy.core 0.0.0' 但找不到无法满足依赖关系:来自:SpringSource Tool Suite Grails Support 2.6.0.201103161000-RELEASE (com.springsource.sts.grails.feature.group 2.6.0.201103161000-RELEASE) 收件人:com.springsource.sts.grails.editor.groovy [2.6.0.201103161000-RELEASE]