Skip to content

Instantly share code, notes, and snippets.

@debop
Created May 7, 2013 13:28
Show Gist options
  • Select an option

  • Save debop/5532549 to your computer and use it in GitHub Desktop.

Select an option

Save debop/5532549 to your computer and use it in GitHub Desktop.
package example.spring.staticinjection;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan( basePackageClasses = { UnitOfWorks.class } )
public class StaticInjectionConfig {
@Bean
public UnitOfWorkFactory unitOfWorkFactory() {
return new UnitOfWorkFactory();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment