用eclipse修改包完成后需要修改的地方:
1.spring配置文件(建议用全部替换的方式)
2.web.xml文件(建议用全部替换的方式)
3.如果开启了AOP需要在包内路径修改否则会报错:Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: com$cdfahe$gms$aop$test$SystemServiceLog提示很明确,修改掉就可以
4.修改XXXMapper.xml文件不然会卡在这里:(也有人说类名重复也会卡,这个倒是没遇到过)
2014-11-01 11:43:31 [Thread-2] INFO org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1220b36: defining beans [propertyConfigurer,dataSource,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,txPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,systemLogAspect,commonServiceImpl,drugServiceImpl,drugTypeServiceImpl,imageServiceImpl,newsServiceImpl,systemManageServiceImpl,userServiceImpl,aboutController,adminManageController,commController,drugController,DZImageController,loginController,indexController,kindEditorController,newsController,publicMsgController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,categoryMapper,commonMapper,drugMapper,drugtypeMapper,dzgpsinfoMapper,dzimagesMapper,dzuserMapper,newsMapper,userFhMapper]; root of factory hierarchy
修改完成后就能正常启动了