spring-4

    0热度

    1回答

    我有Spring 4.1 Application。我正在尝试根据属性文件的值进行计划。我已阅读此post。但我不希望里面@Scheduled @Scheduled(fixedDelayString = "${my.fixed.delay.prop}") public void readLog() { ... } 这里是我的课EL下列方式。 public class MyServ

    1热度

    1回答

    问题预选赛泛型类型已经确定,公布更新后的(滚动到底) 我开发目前使用Spring(spring-context,4.1.6.RELEASE)为国际奥委会和依赖注入的桌面应用程序。我正在使用注释配置,使用@ComponentScan。我遇到的问题应该作为4.X.X中的一项功能实施,因为它表示here和here,但我收到了旧的3.X.X异常。 我有一个参数化接口,它表示一个通用的存储库: public

    1热度

    2回答

    我使用Maven创建 一个Spring4 MVC应用程序以“Maven的原型 - web应用”为的artifactId和 添加依赖“春芯”,“弹簧网络”, “春-MVC” 下面是 “web.xml中” & “的HelloWeb-servlet.xml中” 的web.xml <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javae

    0热度

    1回答

    将Spring 3.2迁移到Spring 4.1时遇到以下错误,同时击中JSP。 java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.j

    7热度

    1回答

    Java 8添加了一项新功能,通过该功能我们可以在接口中提供方法实现。 在Spring 4中有什么方法可以在可以在方法体内部使用的接口中注入bean? 下面是示例代码 public interface TestWiring{ @Autowired public Service service;// this is not possible as it would be static. //

    1热度

    1回答

    基于xml的配置的Spring 4基于MVC的项目希望使用Jackson绑定为某些控制器映射返回Json(并且它将转至Google App Engine)。 做了很多调查,许多不同的解决方案,但他们每个人都有不同的方法,然后我们有。还没有工作解决方案。 的web.xml文件: <?xml version="1.0" encoding="utf-8"?> <web-app version=

    3热度

    1回答

    我喜欢用于bean声明等的注释。但是现在我们有很多订单(@Depends)的bean。维护或查看配置很难。 有没有提供基于所有bean注释的“Effective Spring Config”信息的工具?

    2热度

    1回答

    我使用hibernate 4.3.7和mysql。我无法在mysql中坚持joda tiem。当我使用此批注 @Type(TYPE = “org.jadira.usertype.dateandtime.joda.PersistentDateTimeWithZone”),它抛出该异常 属性映射有错误的列数:car.modifiedDate类型:组织.jadira.usertype.dateandti

    2热度

    2回答

    我们使用ExpressionEvaluationUtils(Deprecated)类来评估使用Spring 3.2.8时的表达式。现在我们已经将产品从Spring 3迁移到Spring 4. final Object argument = ExpressionEvaluationUtils.evaluate("argument", stringArray[0], this.pageContext)

    0热度

    1回答

    我正在使用Spring 4开发Web应用程序。 我有这个控制器 @RequestMapping(value = "/submitIdesFalse", method = RequestMethod.POST) public void setSubmitIdesFalse(Map<String, Object> model, Locale loc) throws UnknownHostExcept