问题标签 [spring-4]
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.
spring - 将 spring 从 3.2 升级到 4 - 泛型问题(扩展)
我有以下代码与 spring 3.2 一起使用并在 spring 4.0.0.RELEASE 上以“NoSuchBeanDefinitionException”失败
当我在 UserDao 类声明中包含 T extends Cacheable 时,它由于泛型而失败。完整的例外是
“NoSuchBeanDefinitionException:没有为依赖项找到类型 [spring.generics.UserDao] 的合格 bean:预计至少有 1 个 bean 有资格作为此依赖项的自动装配候选者。依赖项注释:{@org.springframework.beans.factory.annotation.Autowired( required=true), @org.springframework.beans.factory.annotation.Qualifier(value=userdao)}"
如果声明只是 UserDao < T >,那么一切正常。
关于应该修复什么的任何评论/输入?
spring-security - 在 Spring MVC 中使用 Spring Security 登录,出现 404 错误
在 Tomcat 7 中运行项目时出现 404 错误。
弹簧安全:
Employee-servlet.xml : 它包含数据源(MySQL)、休眠事务管理器(休眠配置)和内部视图解析器
网页.xml:
项目结构
从索引页面我重定向到登录页面,同时在控制器中我实例化一个 bean(POJO/Model)以在下一页进一步使用。成功登录用户进入欢迎页面。
编辑: Index.jsp:
仅包含一个自动重定向。
我已经在 stackoverflow 中搜索了以前的解决方案,但没有解决我的问题。
任何帮助是极大的赞赏。
spring-security - ManagedBean 不可访问,使用 JSF2.2、Spring 4.0 和 SpringSecurity 3.2
我正在开发一个动态 Web 应用程序,使用 JSF 2.2、Spring Framework 4.0 和 Spring Security 3.2。我首先集成了 JSF 和 Spring 框架(JSF Page => ManagedBean => Service => DAO)。它工作正常。但是当我介绍 Spring Security 时,我无法在 JSF 页面中访问 ManagedBean 并且完全没有错误。ManagedBean 甚至没有被调用(甚至没有调用构造函数)。我已经为这个问题浏览了 2 天,但找不到任何解决方案。
我的配置文件如下:
面孔-config.xml
Web.xml
applicationconContext.xml
安全配置.xml
第一个jsf-page.xhtml
托管豆
我的服务
我的服务实现
如果我从 Web.xml 中删除“DelegatingFilterProxy”,一切正常。请在这里帮助我。
我正在使用 Eclipse 和 tomcat 服务器。
download - 在 Spring 4 中找不到 HttpResponse 或 HttpServletResponse
只是我正在处理网络项目,因为我需要在单击链接时下载一个 sql 文件。我试图在控制器中找到HttpResponse或HttpServletResponse 。谁能帮我解决这个问题,
但是在 Spring 3 中它可用,我希望他们在 Spring 4 中删除或重命名了 HttpServletResponse。因为HttpServeltRequest已移至 org.springframework.web.context.request。网络请求。有人调查过这个吗?提前致谢!!!
java - Spring 4 websockets 导致大量异常
自从我们在 Spring 4 开始使用 websockets 以来,我们的日志中就充斥着这个异常:
我们能做些什么来防止这种情况发生?
spring - Spring 4.0 with Tomcat 6:EL 版本冲突
根据迁移指南,Spring 4.0 需要 4.3 或更高版本的 Hibernate Validator 和 6.0.33 或更高版本的 Tomcat。
Hibernate Validator 4.3 依赖于 EL 2.2 不能与 Tomcat 6.0.33 一起使用 EL 2.1。它会给出以下错误:
我的应用程序部署在 Tomcat 6 中,我无权更新 EL 库。
在这种情况下,如何使用 Tomcat 6 迁移到 Spring 4.0?
spring - AbstractMethodError on deploying Spring 4.0 in Tomcat 6
I am getting below exception on deploying Spring 4.0.1 app in Tomcat 6.0.37:
Following related dependencies are added in build.gradle:
Is the error because of spring-beans and spring-webmvc depends on EL 2.2.4 version whereas Tomcat 6 comes with EL 2.1. If so, how to resolve it? Also, I do not have rights to update libs in Tomcat dir.
internet-explorer-8 - ie8 支持 Spring4 websockets 吗?
根据本文档,它们是:http ://caniuse.com/websockets
但是这个文档http://msdn.microsoft.com/en-us/library/ie/hh673567(v=vs.85).aspx似乎暗示最早的版本是ie10
ie8 是否支持 Spring4 websockets(或一般的 web sockets)?
更新:实际上,我错误地阅读了该文档http://caniuse.com/websockets),它们不受支持。