|
我对SPRINGMVC框架不熟,以前没用过,对于定义页面转向一直没有发现从哪配置,还有许多BEAN文件定义也没找到从哪定义的。看着服务器启动时候加载了几个XML文件,但都没有找到相关BEAN的定义。
<servlet>
<description>spring mvc servlet</description>
<servlet-name>springMvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<description>spring mvc 配置文件</description>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-mvc.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
spring-mvc.xml这个里面又引入<import resource="classpath*:jeecg/cgform/common/spring-mvc-cgform.xml" />
但在这两个里面很多BEAN找不到,比如:jeecgOrderMainService
[org.springframework.beans.factory.support.DefaultListableBeanFactory]Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@143ccf5: defining beans [genericBaseCommonDao,miniDaoHandler,org.jeecgframework.minidao.factory.MiniDaoBeanFactory#0,
org.springframework.aop.config.internalAutoProxyCreator,logInterceptor,
org.springframework.context.annotation.internalConfigurationAnnotationProcessor,
org.springframework.context.annotation.internalAutowiredAnnotationProcessor,
org.springframework.context.annotation.internalRequiredAnnotationProcessor,
org.springframework.context.annotation.internalCommonAnnotationProcessor,
org.springframework.context.annotation.internalPersistenceAnnotationProcessor,
ehcacheAspect,hiberAspect,commonDao,jdbcDao,commonService,courseService,jeecgBlobDataService,
jeecgDemoCkfinderService,jeecgDemoService,jeecgJdbcService,jeecgMatterBomService,jeecgNoteService,
jeecgOrderMainService,jpPersonService,optimisticLockingService,taskDemoService,tFinanceService,
webOfficeService,declareService,menuInitService,repairService,systemService,timeTaskService,userService,
cgUploadService,cgReportExcelService,dictDataTag,cgformButtonSqlService,cgformButtonService,
cgTableService,configService,dataBaseService,templetLoader,templetContext,cgformenhanceJsService,
cgFormFieldService,cgReportService,cgformFtlService,MigrateForm,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,
dataSource_jeecg,dataSource,sessionFactory,jdbcTemplate,namedParameterJdbcTemplate,transactionManager,
org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,
org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,
dynamicTask,job,executor,scheduler,org.springframework.context.annotation.internalAsyncAnnotationProcessor,
org.springframework.context.annotation.internalScheduledAnnotationProcessor,taskDemoServiceTaskJob,taskDemoServiceTaskCronTrigger,
schedulerFactory,courseController,demoController,jeecgBlobDataController,jeecgDemoCkfinderController,jeecgDemoController,
jeecgEasyUIController,jeecgJdbcController,jeecgMatterBomController,jeecgNoteController,jeecgOrderMainController,
jeecgOrderMainNoTagController,jpPersonController,optimisticLockingController,reportDemoController,TFinanceController,
userNoPageController,webOfficeController,commonController,configController,dataSourceController,departController,duplicateCheckAction,
functionController,iconController,logController,loginController,repairController,roleController,systemController,territoryController,timeTaskController,
userController,cgReportController,cgformButtonSqlController,cgformButtonController,cgAutoListController,cgFormBuildController,cgformSqlController,
cgformFtlController,cgUploadController,cgExportExcelController,cgformEnhanceJsController,excelTempletController,generateController,
cgFormHeadController,cgformTransController,org.jeecgframework.core.util.ApplicationContextUtil#0,mappingJacksonHttpMessageConverter,
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0,defaultViewResolver,multipartResolver,dialect,exceptionHandler,
org.springframework.web.servlet.handler.SimpleMappingExceptionResolver#0,org.springframework.web.servlet.handler.MappedInterceptor#0,
org.springframework.web.servlet.handler.MappedInterceptor#1,freemarker,org.springframework.web.servlet.handler.MappedInterceptor#2,
org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
|
|