spring-3 Questions
3
Solved
I have the requirement of returning JSON/XML data from my controller.From what i found,I needed @ResponseBody in my method and for that I need <mvc:annotation-driven> enabled. I have tried al...
Mccready asked 14/3, 2013 at 10:6
3
Solved
my web.xml config is
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>...
Ensile asked 17/11, 2011 at 5:48
6
Solved
I am working with Spring Framework 4.0.7, together with MVC and Rest
I can work in peace with:
@Controller
ResponseEntity<T>
For example:
@Controller
@RequestMapping("/person")
@Profil...
Quittor asked 24/10, 2014 at 13:56
3
Solved
Can i use @value annotation inside a method to read property?
void method1(){
@Value("#{AppProperties['service.name']}") String name;
-------
-------
}
Hodometer asked 12/9, 2012 at 15:27
7
Solved
I have below annotation.
MyAnnotation.java
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAnnotation {
}
SomeAspect.java
public class SomeAspect{
@Aroun...
Sass asked 22/1, 2014 at 6:32
9
I am new to spring. I am developing a REST api with spring webmvc. For Error Handling I got this link http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-rest-s...
Dittman asked 21/6, 2014 at 5:55
5
Solved
I've searched around for this question, there's quite a few of them here on StackOverflow and Google but I can't seem to get anything working for me.
here are my codes
Spring config: (I dont use a...
3
Solved
I want to make the Request Mappings in my Spring application dynamic. So that my url can not be understandable. And I can show anything meaningless to the user and still mapping purpose will be res...
Meras asked 21/1, 2013 at 12:57
1
Solved
I have my log4j2.xml in which I need to add the hostname to the log file for the file Appender.
I have the following log4j2.xml-
<Configuration status="WARN" monitorInterval="30&...
5
Solved
I am working with Spring and EhCache
I have the following method
@Override
@Cacheable(value="products", key="#root.target.PRODUCTS")
public Set<Product> findAll() {
return new LinkedHashSe...
Soulsearching asked 24/7, 2014 at 18:7
6
Solved
Is it possible to make the @PathVariable to return null if the path variable is not in the url? Otherwise I need to make two handlers. One for /simple and another for /simple/{game}, but both do th...
Defalcation asked 30/3, 2011 at 23:44
10
I did not create the spring bean name with TimerServiceDispatcher in my application. But, the JBoss throw exception because of TimerServiceDispatcher is already defined in this module.
I don't know...
3
Solved
I'm trying to learn, how spring security works, so I've downloaded some sample project and then I tried to implement that solution to my project. But when I try to login, I get 404 error and in an ...
Correlate asked 12/3, 2013 at 15:35
5
Solved
As in the title above, I am confused about pros cons between injecting applicationContext by directly @Autowired annnotation or implementing ApplicationContextAware interface in a singleton spring ...
Lonesome asked 11/3, 2012 at 19:3
7
I am trying Spring 3's @Scheduled annotation . Here is my configuration (app.xml) :
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmln...
Pelecypod asked 26/3, 2011 at 5:11
7
I am using @Configuration annotation for configuration of spring instead of xml file. I am configuring 2 datasources with different session factory and different transaction managers. I am stuck wi...
Begin asked 8/11, 2011 at 12:14
9
Solved
I have registered a custom conversion service in a Spring 3 application. It works well for POJOs but it does not work on Lists.
For example, I convert from String to Role and it works fine, but no...
Smelter asked 12/10, 2011 at 9:59
2
Example of using @SessionAttributes below. How to clear user session attribute after wizard finished ? In my example after returning to /wizard0 session attribute still exists. I've tried status.se...
Ohaus asked 13/8, 2013 at 12:34
3
Solved
The following allows the declaration of a singleton bean in Spring 3.0:
@Bean
@Scope(BeanDefinition.SCOPE_SINGLETON)
private void setBean1(Bean1 b1) {
this.b1 = b1;
}
But, BeanDefinition does n...
Cable asked 1/7, 2012 at 13:11
2
Solved
I have a spring configuration for logout like follows:
<logout logout-url="/abc/logout"
logout-success-url="/abc/login"/>
Now I want to do programmatically logout. How I can achieve this ...
Hoarse asked 23/9, 2013 at 10:53
5
Solved
I came across two annotations provided by Spring 3 (@Component and @Configuration)
I am a bit confused between these.
Here is what I read about @Component
Put this “context:component” in the bean ...
3
I have a multi module Spring project with Maven. I'm using Spring 3.2.3 with annotation config.
I have the following layout:
parent
common (depends on parent)
webapp (depends on parent, common,...
Badgett asked 15/7, 2013 at 18:28
3
Solved
Similarly to this question regarding an earlier Spring version, what are the minimum dependencies required for an application to use Spring 3.0 dependency injection only? The application context wi...
Demello asked 29/10, 2010 at 16:38
2
Solved
Earlier the configurations used to be in hard coded in the code, later it was externalized to .property files (for sake of avoiding hard coded values, avoiding changing code for the sake of changin...
Mikael asked 20/3, 2015 at 8:26
15
I'm learning Spring 3 and I don't seem to grasp the functionality behind <context:annotation-config> and <context:component-scan>.
From what I've read they seem to handle different anno...
Amundson asked 14/9, 2011 at 10:28
1 Next >
© 2022 - 2025 — McMap. All rights reserved.