spring-annotations
Spring @Transactional doesn't work with other annotations?
So my Spring education continues. Currently I\'m trying to learn some of the annotations and the things they bring to Spring 3. So I\'ve got a mini webapp that can connect to a DB and put stuff in thr[详细]
2023-04-13 07:06 分类:问答RequestMapping on presence of one of multiple parameters
I have a Spring3 controller in which I\'m using the @RequestMapping annotation.I know I can use the params value to route based on the the presence or lack of a url parameter, but is there a way to r开[详细]
2023-04-08 16:12 分类:问答Using Java Spring 3.0 @NumberFormat annotation
I\'m currently working on a small project trying to get Java spring validation working on a web form. It does work, however I have one input for inputting age, which I then convert to number format us[详细]
2023-04-06 11:56 分类:问答Spring MVC controller inheritance and routing
In my Spring MVC webapp I have a generic RESTful controller for CRUD operations. And each concrete controller had to declare only a @RequestMapping, for example /foo. Generic controller handled all re[详细]
2023-04-04 19:04 分类:问答Why doesn't my @Cachable annotated method cache the result with EHCache?
I have an interceptor in Spring, which autowires two different services. Both services have methods that are tagged with @Cacheable from the ehcache-spring-annotations project, but with different cach[详细]
2023-04-04 13:22 分类:问答org.hibernate.HibernateException: load is not valid without active transaction
I am getting the following error while load a user data. org.hibernate.HibernateException: load is not valid without active transaction[详细]
2023-04-02 20:16 分类:问答Is there a way in Spring to autowire all dependencies of a given type?
I\'m using annotations-based wiring (ie @Configurable(autowire=Autowire.BY_TYPE)) for a given class, and I\'d like to wi开发者_运维技巧re all beans of a given type into it as a list:[详细]
2023-03-29 01:01 分类:问答Is there a way to @Autowire a bean that requires constructor arguments?
I\'m using Spring 3.0.5 and am using @Autowire annotation for my class members as much as possible.One of the beans that I need to autowire requires arguments to its constructor.I\'ve looked through t[详细]
2023-03-21 09:07 分类:问答@Secured does not work in controller, but intercept-url seems to be working fine
It doesn\'t look like @Secured on methods in my @Controller are being read. When security filtering based on sec:intercept-url is being used, this seems to be working just fine. The following code res[详细]
2023-03-19 22:51 分类:问答Which Spring annotation to use for Hibernate DAO class?
What Spring annotation should I use for Hibernate 开发者_C百科DAO classes so they could be found in scanning process? @Repository, @Service or @Component? I couldn\'t figure out the difference. I\'m o[详细]
2023-03-12 21:42 分类:问答