Created
May 7, 2013 13:28
-
-
Save debop/5532549 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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