Packet for query is too large (1146583 > 1048576).

 ### Cause: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1146583 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.
; SQL []; Packet for query is too large (1146583 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.; nested exception is com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1146583 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable., mergedContextConfiguration = [MergedContextConfiguration@64aa401e testClass = IDicPcctvServiceTest, locations = '{classpath*:config/applicationContext.xml}', classes = '{}', activeProfiles = '{}', contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader']]]
INFO - Closing org.springframework.context.support.GenericApplicationContext@67291453: startup date [Sun Apr 07 22:25:56 CST 2013]; root of context hierarchy
INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7a7962ea: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.config.internalBeanConfigurerAspect,baseServiceImpl,customerAttachmentServiceImpl,customerBankAccountsServiceImpl,customerIncomePayoutDetailServiceImpl,customerInfoServiceImpl,customerLoginLogServiceImpl,customerProductPriceServiceImpl,customerReceiveAddressServiceImpl,dicDataServiceImpl,dicPcctvServiceImpl,dicTypeServiceImpl,orderCancelServiceImpl,orderDeliveryDetailServiceImpl,orderDeliveryServiceImpl,orderDetailServiceImpl,orderInfoServiceImpl,orderPaymentDetailServiceImpl,orderProcessServiceImpl,orderShoppingCartDetailServiceImpl,orderShoppingCartServiceImpl,productBrandServiceImpl,productFirstPageShowServiceImpl,productImageServiceImpl,productInfoServiceImpl,productIngredientServiceImpl,productPromotionDetailServiceImpl,productPromotionServiceImpl,productSaleRankingServiceImpl,productTypeServiceImpl,sellerCustomerServiceImpl,sysDepartmentServiceImpl,sysModuleServiceImpl,sysOrgServiceImpl,sysPermissionServiceImpl,sysRoleServiceImpl,sysUserServiceImpl,propertyConfigurer,transactionManager,dataSource,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,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0,customerAttachmentMapper,customerBankAccountsMapper,customerIncomePayoutDetailMapper,customerInfoMapper,customerLoginLogMapper,customerProductPriceMapper,customerReceiveAddressMapper,dicDataMapper,dicPcctvMapper,dicTypeMapper,orderCancelMapper,orderDeliveryDetailMapper,orderDeliveryMapper,orderDetailMapper,orderInfoMapper,orderPaymentDetailMapper,orderProcessMapper,orderShoppingCartDetailMapper,orderShoppingCartMapper,productBrandMapper,productFirstPageShowMapper,productImageMapper,productInfoMapper,productIngredientMapper,productPromotionDetailMapper,productPromotionMapper,productSaleRankingMapper,productTypeMapper,sellerCustomerMapper,sysDepartmentMapper,sysDepartmentUserMapper,sysModuleMapper,sysOrgMapper,sysOrgModuleMapper,sysOrgUserMapper,sysOrgUserPermissionMapper,sysPermissionMapper,sysRoleMapper,sysRolePermissionMapper,sysUserMapper,sysUserRoleMapper]; root of factory hierarchy

MySQL\MySQL Server 5.5\my-large.ini 修改

max_allowed_packet = 8M

猜你喜欢

转载自frank1998819.iteye.com/blog/1843360