Questions tagged [spring-4]

Version 4.x of the Spring Framework

Use for general Spring related questions. This tag is for questions that are specific to versions 4.x only.

618 questions
0
votes
1 answer

Possible to use Spring 4 with Tiles 2 ?

Is it possible to use spring 4 with tiles 2 ? I can't seem to find any documentation on how to configure tiles with spring web, and many of the classes have changed in tiles 3 vs tiles 2.
MikePatel
  • 2,593
  • 2
  • 24
  • 38
0
votes
1 answer

Spring 4 - Config XML jpa:repositories throwing NoSuchMethodError BeanDefinitionParserDelegate.getEnvironment()

I am attempting to integrate the Gradle project here into a Maven project of mine. The file data-context.xml is used to configure Hibernate with Spring to generate the repositories used for authenticating User requests to the RESTful…
a.hrdie
  • 716
  • 2
  • 14
  • 35
0
votes
1 answer

AbstractStatelessSessionBean missing from SpringFramework 4

I'm trying to update a big projekt from Spring 2 to Spring 4. On the deep end of the Beans hierarchy i found a class called CustomAbstractStatelessSessionBean and that extends the AbstractStatelessSessionBean class from…
hEngi
  • 865
  • 10
  • 23
0
votes
0 answers

Spring 4 + @ControllerAdvice: Jsonp support for ResponseBody causes Deployment Exception?

I am adding JSONP support to a REST Service in SPRING4 + JDK 8 + STS 3.6.4 Versions: Spring 4.1.6.RELEASE My implementation is based on these links: http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc-ann-jsonp The…
DolphinJava
  • 2,682
  • 1
  • 23
  • 37
0
votes
1 answer

Spring: How can I debug a BeanCreationNotAllowedException?

I am trying to add a new Spring bean to one of my projects. The bean is defined and created in another package like so: @Configuration public class UtilityBeans { public static String MY_BEAN_NAME = "my.bean.name"; @Bean(name =…
Niru
  • 1,407
  • 1
  • 28
  • 47
0
votes
1 answer

Spring: Global Path Variable or Request Parameter without Controller

I have a Spring Boot & Spring Security application running, which should now get multi tenancy support. I'd like to keep things as simple as possible. Though I'd like to determine the the database by path variable or request parameter. (the Apache…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
0
votes
1 answer

spring : Input page forwarding when exception like struts

Business validations are implemented by throwing CustomeException(key) such that user will be displayed error messages when something goes wrong. I have to forward to input jsp (like struts) when business exception raised, to correct the user…
Dhorrairaajj
  • 55
  • 11
0
votes
1 answer

Using maven profiles to configure code based a Spring application

I have a Spring application which is complete code based configured. And I am trying to combine maven profiles to setup my db connections. I defined some properties for a local, live and staging issues. Now I try to get control over maven profiles.…
Grimbo
  • 237
  • 2
  • 13
0
votes
1 answer

Integrate Mule-esb with Spring 4

I have an application using Mule ESB with spring 3. Now I want to upgrade to Spring 4, but it seem to be the Mule esb does not support spring 4. Anyone can help me?
LynnHoang
  • 11
  • 1
0
votes
2 answers

idref and ref difference in Spring

I'm learning Spring only using the documentation. I got confused when idref came into picture. My understanding is in order to define a property in a bean we need to use the "property" tag with "name" and "value" attributes. "name" should be exactly…
Vinodh Thiagarajan
  • 758
  • 3
  • 9
  • 19
0
votes
2 answers

Spring REST API for posting jar file

I am using RESTful endpoints for some file operations. I would want to post a jar file to my service via REST , I tried below approach but still it fails, I almost tried googling but could not find any solution. @RestController public class…
chaosguru
  • 1,933
  • 4
  • 30
  • 44
0
votes
1 answer

Conditional validation in spring mvc

Now I have following controller method signature: @ResponseBody @RequestMapping(value = "/member/createCompany/addParams", method = RequestMethod.POST) public ResponseEntity setCompanyParams( @RequestParam("companyName") String…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

Spring 4 AOP aspect is never being called?

I am using Spring 4 AOP and the aspect that i create is never being called and i cannot figure it out why is that. Look, i have this client class: package com.example.aspects; public class Client { public void talk(){ } } And my aspect:…
jscherman
  • 5,839
  • 14
  • 46
  • 88
0
votes
1 answer

BeanNameAutoProxyCreator setBeanNames regular expression not working?

This is my BeanNameAutoProxyCreator: @Bean public BeanNameAutoProxyCreator beanNameAutoProxyCreator() { BeanNameAutoProxyCreator beanNameAutoProxyCreator = new BeanNameAutoProxyCreator(); beanNameAutoProxyCreator.setBeanNames("*service"); //…
jscherman
  • 5,839
  • 14
  • 46
  • 88
0
votes
3 answers

how to set many targets to ProxyFactoryBean?

I am working with Spring 4 AOP and right now, i have my ProxyFactoryBean configured like this: @Bean @Primary public ProxyFactoryBean proxyFactoryBean() { ProxyFactoryBean proxyFactoryBean = new ProxyFactoryBean(); …
jscherman
  • 5,839
  • 14
  • 46
  • 88