我已经四处寻找初学者教程,开始使用STS IDE创建Spring应用程序.似乎没有任何东西,它的任何一只手构建它或教程不起作用,并且是当前IDE的许多版本.我是Spring的新手,需要继续这样做.任何链接,你可以抛出我的方式,我会很感激.
我在运行时在grails应用程序中向message.properties文件添加新属性时出现了一个奇怪的错误.当我通过命令行重新启动应用程序,或重新启动STS时,此错误消失.我在2.0.1版本上,直到一周前,我能够在运行时向message.properties文件中添加新属性.这是错误的堆栈跟踪
| Error 2012-06-18 16:54:58,702 [Thread-38] ERROR plugins.AbstractGrailsPluginManager - Plugin [i18n:2.0.1] could not reload changes to file [/home/project/grails-app/i18n/messages.properties]: Error starting Sun's native2ascii:
Message: Error starting Sun's native2ascii:
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
grails properties internationalization sts-springsourcetoolsuite
是Eclipse的 " 构建项目 "命令相同的Maven命令" MVN编译 "?两者基本上都做同样的事情吗?
如果是,那么为什么我在运行"mvn clean install"之后需要在STS中执行"Build Project"才能运行应用程序而没有任何问题?运行"mvn clean install"应该已经编译了项目.不应该刷新STS中的项目足以运行它吗?
如果否,则Eclipse构建不同,因为Java编译器实现了Java语言规范来构建类吗?但是下面的Apache Maven链接说默认编译器是javax.tools.JavaCompiler(顺便说一句,我使用的是Java 1.6).
我正在使用Springsource Tools Suite 3并试图实现拦截.这是代码和错误评论:
servlet的context.xml中
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<annotation-driven />
<resources mapping="/resources/**" location="/resources/" />
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<beans:property name="prefix" value="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>
<beans:bean id="authInterceptor" class="com.bank.accounting.authentication.AuthInterceptor" />
<beans:bean id="authUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
Run Code Online (Sandbox Code Playgroud)
bean定义解析期间出现意外故障:配置问题:找不到元素[list]的BeanDefinitionParser
<beans:property name="interceptors">
<list>
Run Code Online (Sandbox Code Playgroud)
匹配的通配符是严格的,但是没有为元素'list'找到声明.
<ref bean="authInterceptor" />
</list>
</beans:property>
<beans:property name="mappings">
<props>
Run Code Online (Sandbox Code Playgroud)
匹配的通配符是严格的,但是没有为元素'props'找到声明.
<prop key="/home">HomeController</prop>
</props>
</beans:property>
</beans:bean>
<beans:bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
Run Code Online (Sandbox Code Playgroud)
bean定义解析期间出现意外故障:配置问题:找不到元素[props]的BeanDefinitionParser
<beans:property name="mappings">
<props>
Run Code Online (Sandbox Code Playgroud)
匹配的通配符是严格的,但是没有为元素'props'找到声明.
<prop key="/login">LoginController</prop>
</props>
</beans:property>
</beans:bean>
</beans:beans>
Run Code Online (Sandbox Code Playgroud) 有谁知道我在哪里可以找到Spring IDE插件与SpringSource Tool Suite STS(版本3.3.0)的最新功能比较文档?
我相信Eclipse在Kepler发布中取得了一些很好的进展(例如Maven支持正在发布),所以想知道在Eclipse Java EE Kepler中是否减少了Eclipse + Spring IDE插件与2.9.2功能比较中突出显示的STS之间的功能差距.
我下载了springource工具套件,并创建了一个springMVC模板项目(hello world).工作得很好.我刚刚添加了一个简单的表单,而spring标签似乎不起作用.STS无法识别标签,并且在加载时它们无法在页面上正确呈现.有任何想法吗?
simpleForm.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form:form action="formOutput.html" commandName="user">
<table align="center">
<tr>
<td>Username:</td>
<td><form:input path="userName" /></td>
</tr>
<tr>
<td>First Name:</td>
<td><form:input path="firstName" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><form:input path="lastName" /></td>
</tr>
<tr>
<td>Email:</td>
<td><form:input path="email" /></td>
</tr>
<tr>
<td>Mobile Number:</td>
<td><form:input path="mobile" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Submit" /></td>
</tr>
</table>
</form:form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?
我的项目编译没有任何问题.我走出Eclipse然后回到里面得到这个错误.我的项目中不存在这些文件夹.我不认为是Grails的一部分,似乎STS创造了它们.问题是什么?
STS 2.9,Grails 2.0.1
非常感谢你的进步

我有一个用Git托管在googlecode上的项目.
我正在使用STG(SpringSource工具套件)和eGit.
我在家里克隆了存储库,我可以提交并成功推送更改.我在工作中做了同样的事情,当我尝试在提交后推送更改时,它显示以下错误:
https://myuser@code.google.com/p/myproject/: Invalid username/password.
You may need to use your generated googlecode.com password; see https://code.google.com/hosting/settings
Run Code Online (Sandbox Code Playgroud)
我第一次克隆存储库时输入了googlecode生成的密码(就像我在家里做的那样,这个错误从未出现过).我尝试再次输入,没有任何变化.
有谁知道是什么原因引起的?
谢谢!!
在Eclipse中我的Maven控制的java项目中工作期间,有时会将奇怪的依赖项添加到项目的pom.xml中(scala.lang或其他).通常我在将更改提交到源存储库时会意识到这一点(有时我没有意识到).
我使用基于Kepler 4.3.2的Spring Source Tool Suite 3.5.1,从Sonatype安装了Maven Integration for AJDT.
当Eclipse自动确定源文件中的导入时,可能会有一些自动化,它会将依赖项添加到pom.xml中.我可以禁用这种不受欢迎的行为吗?
我正在运行STS(Kepler/3.5.1.RELEASE)并遇到一个恼人的问题,其中Java编辑器将突出显示变量/方法/等的出现.只有在十秒钟的延迟之后.
无论以下情况如何,这种行为似乎都会发生:
在同一台机器上安装类似大小的Eclipse Juno安装几乎可以即时发生.正如我所料,其他编辑器类型(例如Python)似乎更快地突出显示.
有没有人见过这种行为?
eclipse ×5
java ×4
grails ×2
maven ×2
spring-mvc ×2
build ×1
egit ×1
git ×1
google-code ×1
ide ×1
properties ×1
spring ×1