67,513
社区成员
发帖
与我相关
我的任务
分享
<tx:annotation-driven />
<context:component-scan base-package="cn.com.service.*" use-default-filters="false">
<context:include-filter type="annotation" expression="org.springframework.stereotype.Service" />
</context:component-scan>
@Service("simpleServiceImpl")
@Scope("prototype")//默认单例;
public class SimpleServiceImpl implements ISimpleService {
@Autowired
@Qualifier("simpleServiceFunction")
// @Resource
private IMSServiceFunction iMSServiceFunction;
}
@Service("simpleServiceFunction")
public class SimpleServiceFunction {
@Resource
private SimpleDao simpleDao;
}
十月 15, 2013 10:09:48 上午 org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
十月 15, 2013 10:09:48 上午 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
[INFO] Root WebApplicationContext: initialization started
[INFO] Refreshing Root WebApplicationContext: startup date [Tue Oct 15 10:09:48 CST 2013]; root of context hierarchy
[INFO] Loading XML bean definitions from class path resource [applicationContext.xml]
[INFO] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@b2b76c: defining beans [dataSource,applicationContext,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,simpleServiceFunction,simpleServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,simpleDao,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
[INFO] Root WebApplicationContext: initialization completed in 2535 ms
[INFO] Clustering has been disabled
Could not identify the Annotation....
Could not identify the Annotation....