for cache debug test

本文进行了一系列的缓存调试测试,详细记录了测试过程中的关键步骤和发现的问题。

for cache debug test

for cache debug test

for cache debug test


ffff

Updates: 1 Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@373ebf74] true 09:59:03.102 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.102 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 10, missCount = 1] 09:59:03.102 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.102 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 11, missCount = 1] 09:59:03.102 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - After test method: context [DefaultTestContext@3dfc5fb8 testClass = TestBalance, testInstance = cs.test.TestBalance@75cd8043, testMethod = testUpdate@TestBalance, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null], method annotated with @DirtiesContext [false] with mode [null]. 09:59:03.102 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [cs.test.TestBalance] 09:59:03.103 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [cs.test.TestBalance] 09:59:03.103 [main] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@3dfc5fb8 testClass = TestBalance, testInstance = cs.test.TestBalance@362045c0, testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]], attributes = map[[empty]]]]. 09:59:03.103 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.103 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 12, missCount = 1] 09:59:03.103 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.103 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 13, missCount = 1] 09:59:03.103 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test method: context [DefaultTestContext@3dfc5fb8 testClass = TestBalance, testInstance = cs.test.TestBalance@362045c0, testMethod = testGetBalanceById@TestBalance, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null], method annotated with @DirtiesContext [false] with mode [null]. 09:59:03.103 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.103 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 14, missCount = 1] 09:59:03.103 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.104 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 15, missCount = 1] Creating a new SqlSession SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5ccbeb64] was not registered for synchronization because synchronization is not active 09:59:03.104 [main] DEBUG org.springframework.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource JDBC Connection [1495608502, URL=jdbc:mysql://localhost:3306/cs_data?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true, UserName=root@localhost, MySQL Connector/J] will not be managed by Spring ==> Preparing: SELECT uid,u_money FROM usr_balance WHERE uid=? ==> Parameters: 001(String) <== Columns: uid, u_money <== Row: 001, 100.0 <== Total: 1 Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@5ccbeb64] Balance(uid=001, money=100.0) 09:59:03.105 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.105 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 16, missCount = 1] 09:59:03.105 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.105 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 17, missCount = 1] 09:59:03.107 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - After test method: context [DefaultTestContext@3dfc5fb8 testClass = TestBalance, testInstance = cs.test.TestBalance@362045c0, testMethod = testGetBalanceById@TestBalance, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null], method annotated with @DirtiesContext [false] with mode [null]. 09:59:03.107 [main] DEBUG org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate - Retrieved ApplicationContext [1629911510] from cache with key [[MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]] 09:59:03.107 [main] DEBUG org.springframework.test.context.cache - Spring test ApplicationContext cache statistics: [DefaultContextCache@4d6025c5 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 18, missCount = 1] 09:59:03.108 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - After test class: context [DefaultTestContext@3dfc5fb8 testClass = TestBalance, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@467aecef testClass = TestBalance, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null]. 09:59:03.108 [SpringContextShutdownHook] DEBUG org.springframework.context.support.GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@612679d6, started on Tue Sep 30 09:59:02 CST 2025 Process finished with exit code 0
最新发布
10-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值