配置MAVEN后,用myeclipse启动服务器报错,是什么原因?各位大神求救,错误信息如下:
信息: Initializing Spring root WebApplicationContext
11:07:38,290 [ localhost-startStop-1 ] [ INFO ]:285 - Root WebApplicationContext: initialization started
11:07:38,411 [ localhost-startStop-1 ] [ INFO ]:510 - Refreshing Root WebApplicationContext: startup date [Fri Oct 09 11:07:38 CST 2015]; root of context hierarchy
11:07:38,489 [ localhost-startStop-1 ] [ INFO ]:315 - Loading XML bean definitions from class path resource [beans.xml]
11:07:38,879 [ localhost-startStop-1 ] [ INFO ]:315 - Loading XML bean definitions from class path resource [cxf-beans.xml]
11:07:38,926 [ localhost-startStop-1 ] [ INFO ]:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
11:07:38,942 [ localhost-startStop-1 ] [ INFO ]:315 - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
11:07:39,489 [ localhost-startStop-1 ] [ INFO ]:172 - Loading properties file from class path resource [dbProp.properties]
11:07:39,578 [ localhost-startStop-1 ] [ INFO ]:598 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@357f5714: defining beans [bossMethod,businessMethod,clientMethod,driverMethod,repositoryMethod,bossServiceDeal,businessServiceDeal,clientServiceDeal,customerDeal,deliveryOrder,driverDeal,goodsService,menuContext,orderDeal,purOrderDeal,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,propertyConfigurer,ds,sqlSessionFactory,txManager,jdbcTemplate,org.mybatis.spring.mapper.MapperScannerConfigurer#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,bossMethodPoint,clientMethodPoint,driverMethodPoint,repositoryMethodPoint,businessMethodPoint,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,bossMapper,businessMapper,clientMapper,deliveryOrderMapper,driverMapper,ICustomerDAO,IGoodsDAO,IOrderDAO,newsMapper,purchaseOrderMapper]; root of factory hierarchy
11:07:39,844 [ localhost-startStop-1 ] [ ERROR ]:918 - maxIdle is deprecated
chat回答
maxIdle 是连接池中的一个参数,用于设置连接池中空闲连接的最大数量。这个警告信息表示 maxIdle 参数已经不再推荐使用,在最新版本的连接池实现中已经被废弃。取而代之的是 maxIdleTime 参数,它指定空闲连接的最大存活时间。一旦连接空闲时间超过 maxIdleTime,该连接将从连接池中移除并关闭。
因此,如果您正在使用 maxIdle 参数,请考虑将其替换为 maxIdleTime 参数,并根据您的应用程序需求相应地进行配置。另外,建议查看您正在使用的连接池实现的文档以获取更多详细信息。