struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Spring Anotaction with Strust
Date Mon, 26 Aug 2013 13:13:10 GMT
2013/8/17 Alireza Fattahi <afattahi@yahoo.com>:
> Hi,
> May be this a spring question but please help me...
> Consider the example:
> http://struts.apache.org/release/2.2.x/docs/spring-and-struts-2.html
>
> I want to use spring anotation for defining the beans.
> So I make a EditServiceInMemory class as below:
>
> @Configuration
> public class EditServiceInMemory{

Rather use @Service

>          @Bean
>              public  void editService() {

hm.... method that doesn't return anything is annotated as Bean producer ;-)


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message