问题标签 [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.
eclipse - Eclipse 插件无法加载
Eclipse 有时可能无法加载插件。我用 ScalaIDE 和 GroovyEclipse 都体验过这个 E3.7。
在这两种情况下,有时语法高亮都会失败。我也注意到有时不会出现与插件相关的菜单项和弹出窗口。当您使用 Pulse Eclipse 发行版时,这一点非常明显。
这是在使用 Eclipse 一段时间并经过一些更新后汇总的。有时,干净的解压缩并下载所需的插件可以解决问题。
有没有办法解决这些问题?
spring-mvc - spring-mvc 项目你好世界
我使用 SpringSource Tool Suite sts 来启动一个关于 MVC 的 hello world 示例。
File -> New -> Spring Template Project -> 然后选择 Spring MVC Project
我添加 Project Name:helloworld
并将顶级包指定为com.helloworld.myapp
然后完成。
现在我尝试运行应用程序并选择在服务器上运行,它总是向我显示永久屏幕,上面写着:请求的资源 ( /helloworld/
) 不可用。
服务器显示以下内容:
从 D:\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\conf\Catalina\localhost 部署配置描述符 EchoSpringMVC.xml 2011 年 11 月 30 日下午 4:07:56 org.apache .catalina.startup.SetContextPropertiesRule 开始警告:[SetContextPropertiesRule]{Context} 将属性“源”设置为“org.eclipse.jst.jee.server:EchoSpringMVC”没有找到匹配的属性。2011 年 11 月 30 日下午 4:07:56 com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader 启动信息:上下文 [localhost|EchoSpringMVC] 将不会被编织 2011 年 11 月 30 日下午 4:07:56 org.apache。 catalina.core.StandardContext listenerStart 严重:向类 org.springframework.web.context.ContextLoaderListener java.lang.NoClassDefFoundError 的侦听器实例发送上下文初始化事件的异常:
apache.catalina.core.StandardContext$4.run(StandardContext.java:5473) at java.lang.Thread.run(Thread.java:722) 原因:java.lang.IllegalStateException: org.slf4j.LoggerFactory 无法成功初始化。也可以看看 http://www.slf4j.org/codes.html#unsuccessfulInit 在 org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:282) 在 org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:248) 在 org.apache。 commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:131) at org.apache.commons.logging.LogFactory.getLog( LogFactory.java:272) 在 org.springframework.web.context.ContextCleanupListener.(ContextCleanupListener.java:43) ... 4 更多
我哪里错了?请帮忙。
spring - 在 Spring 中使用自定义处理程序拦截器将用户重定向到基于设备的移动站点的最佳方法是什么
现在,我们正在开发一个项目,该项目将在 Spring 中创建,该项目将具有该站点的桌面和移动版本。我们希望移动版和桌面版共享相同的 Spring 安全系统等。
我们正在使用 Spring mobile 来检测设备是否是移动设备,并且可能使用 Spring 站点偏好参数。
我们不想使用 spring 移动重定向器,因为这似乎重定向到另一个域(例如 m.website.com),并且不会轻易使用相同的 spring 安全性。
所以我想使用 HandlerInterceptor 重定向到站点内的特定目录 - 例如“/jsp/mobile/”。
1)在这个扩展的 HandlerInterceptor 中是否可以在 preHandle 方法中使用 Spring Mobile 设备检测器?
2)重定向的最佳方式是什么?是a)只使用http响应,还是b)以某种方式更改viewResolver并将前缀从“/jsp/”更改为“/jsp/mobile/”
很抱歉这个冗长的问题,但我希望尽可能多地提供关于我们正在尝试做的事情的信息!
干杯
grails - 从选择标签中选择多个值 - Grails
你能请任何人告诉我如何从
我的 create.gsp 中有这个
这是在 OperationLogContoller.groovy
如果我从 select 中只选择一个,它会完美运行,但如果我选择两个,则会出现以下异常:
java - tcServer 上的零停机部署?
我一直在使用 tcServer 进行调查,我遇到的一个问题是我在使用 tomcat 时一直遇到的问题......部署应用程序时出现中断。
将应用程序部署到 tcServer 时,肯定有某种方法可以实现零停机时间吗?
grails - Weceem 1.1.2 启动时找不到资源
当我尝试使用 Weceem 启动项目时,我在 STS 控制台中收到以下错误:
| 错误 2012-02-07 09:23:54,609 ["http-bio-8080"-exec-3] 错误 resource.ResourceMeta - 处理 /plugins/blueprint-0.9.1.1/css/blueprint/screen.css 时,一种资源需要但未找到:/plugins/blueprint-0.9.1.1/css/blueprint/src/grid.png
| 错误 2012-02-07 09:23:55,411 ["http-bio-8080"-exec-3] 错误 resource.ResourceMeta - 在处理 /plugins/weceem-1.1.2/_weceem/css/weceem.css 时,一种资源需要但未找到:/plugins/weceem-1.1.2/_weceem/images/weceem/absBullet.png
| 错误 2012-02-07 09:25:32,772 ["http-bio-8080"-exec-10] 错误 resource.ResourceMeta - 处理 /plugins/ckeditor-3.6.0.0/js/ofm/styles/filemanager.css 时,需要资源但未找到:/plugins/ckeditor-3.6.0.0/js/ofm/images/circular/yes.png
我正在使用 STS 2.9.0.M2、Grails 2.0 版和 Weceem 1.1.2 插件
有没有人遇到过这样的问题?我是 STS、Grails 和 Weceem 的新手,因此我们将不胜感激。提前致谢。
java - Spring JDBC 与普通 JDBC 的区别?
Spring JDBC 与 JDBC 之间的主要区别是什么?
sts-springsourcetoolsuite - 在 Cloud Foundry 服务器上部署应用程序
当我使用 STS(SpringSource 工具套件)将应用程序部署到 Cloud Foundry 时,出现了一个问题。我的部署过程如下:
1:Cloud Foundry安装完成后,点击YES重启STS。选择窗口 > 显示视图 > 服务器
2:在 Servers 面板中右键单击并选择New > Server 展开 VMware 文件夹,选择 Cloud Foudry,然后单击Next。
3:在这一步,我选择VMware Cloud Foundry,输入我在Cloud Foundry网站上登录的用户账号和密码。
4:点击finsh建立Cloud Foundry服务器。
5:要部署应用程序,请将其拖到目标 Cloud Foundry Server。右击目标Cloud Foundry Server,选择Add and Remove,此时出现问题。在 Cloud Foundry 服务器上没有可部署的应用程序,我已经构建了一些 Java 项目。
我尝试了服务器方法来解决问题,不幸的是,我失败了,如果你有帮助吗?
java - @Autowired 设置的一些对象总是为空,其他的都可以
我一直在做我的第一个 Spring 项目,但遇到了一个烦人的问题。
我有一个名为“UsernameService”的类,它在 dispatcher-servlet.xml 中配置为 bean:
当这个 bean 在我的一个类中创建时(bean 定义:)
像这样:
它工作得很好。但是,当我尝试在另一个类中做同样的事情时,LogController:
然后它不起作用,我收到以下错误:
严重:servlet [dispatcher] 在路径 [/flexitime] 的上下文中的 Servlet.service() 引发异常 [请求处理失败;嵌套异常是 java.lang.NullPointerException],其根本原因是 java.lang.NullPointerException
我已经设法(我相信)将此错误归因于 uns 从未真正设置/创建并在 LogController 中保持为 null 的事实。
我已经对此进行了广泛的谷歌搜索,并找到了许多“解决方案”,但是到目前为止,它们都没有奏效。
谢谢!詹姆士
javascript - how to give the url of a jsp page to open pop up which is in WEB-INF folder while using springs frame work
In my project i have requirement to open a jsp page as a popup from another jsp for that i use the javascript code as follows
window.open('popup.jsp','popupname','//properties of popup window ')
here in url if i mention as of above then i have to keep that jsp page in webcontent folder
now my question is If i want to keep that jsp page in WEB-INF folder how i have to mention the url.
I tried to give url like WEB-INF/popup.jsp but it is not working. but if i create a new folder in webcontent and try to acess it like createdfolder/popup.jsp its working.
Can anyo one help me one this issue how i have the url to acess the jsp page in WEB-INF.
Note:-I am using springs frame work in my project.