There is no getter for property named 'ew' in 'class com.baomidou
There is no getter for property named 'ew' in 'class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper'
C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\bin\java.exe -ea -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\lib\idea_rt.jar=52693:C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\plugins\junit\lib\junit5-rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.2\plugins\junit\lib\junit-rt.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\charsets.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\access-bridge-64.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\cldrdata.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\dnsns.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\jaccess.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\jfxrt.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\localedata.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\nashorn.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\sunec.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\sunjce_provider.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\sunmscapi.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\sunpkcs11.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\ext\zipfs.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\jce.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\jfr.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\jfxswt.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\jsse.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\management-agent.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\resources.jar;C:\Users\dxz-DC\.jdks\corretto-1.8.0_322\jre\lib\rt.jar;C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\test-classes;C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-webmvc\5.2.6.RELEASE\spring-webmvc-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-aop\5.2.6.RELEASE\spring-aop-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-beans\5.2.6.RELEASE\spring-beans-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-context\5.2.6.RELEASE\spring-context-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-core\5.2.6.RELEASE\spring-core-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-jcl\5.2.6.RELEASE\spring-jcl-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-expression\5.2.6.RELEASE\spring-expression-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-web\5.2.6.RELEASE\spring-web-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\freemarker\freemarker\2.3.31\freemarker-2.3.31.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-context-support\5.2.6.RELEASE\spring-context-support-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.11.0\jackson-core-2.11.0.jar;C:\Users\dxz-DC\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.0\jackson-annotations-2.11.0.jar;C:\Users\dxz-DC\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.11.0\jackson-databind-2.11.0.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-jdbc\5.2.6.RELEASE\spring-jdbc-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-tx\5.2.6.RELEASE\spring-tx-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\org\mybatis\mybatis\3.5.9\mybatis-3.5.9.jar;C:\Users\dxz-DC\.m2\repository\org\mybatis\mybatis-spring\2.0.3\mybatis-spring-2.0.3.jar;C:\Users\dxz-DC\.m2\repository\mysql\mysql-connector-java\8.0.26\mysql-connector-java-8.0.26.jar;C:\Users\dxz-DC\.m2\repository\com\google\protobuf\protobuf-java\3.11.4\protobuf-java-3.11.4.jar;C:\Users\dxz-DC\.m2\repository\com\alibaba\druid\1.2.8\druid-1.2.8.jar;C:\Users\dxz-DC\.m2\repository\org\springframework\spring-test\5.2.6.RELEASE\spring-test-5.2.6.RELEASE.jar;C:\Users\dxz-DC\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\dxz-DC\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\dxz-DC\.m2\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;C:\Users\dxz-DC\.m2\repository\ch\qos\logback\logback-classic\1.2.9\logback-classic-1.2.9.jar;C:\Users\dxz-DC\.m2\repository\ch\qos\logback\logback-core\1.2.9\logback-core-1.2.9.jar;C:\Users\dxz-DC\.m2\repository\org\slf4j\slf4j-api\1.7.32\slf4j-api-1.7.32.jar;C:\Users\dxz-DC\.m2\repository\com\baomidou\mybatis-plus\3.3.2\mybatis-plus-3.3.2.jar;C:\Users\dxz-DC\.m2\repository\com\baomidou\mybatis-plus-extension\3.3.2\mybatis-plus-extension-3.3.2.jar;C:\Users\dxz-DC\.m2\repository\com\baomidou\mybatis-plus-core\3.3.2\mybatis-plus-core-3.3.2.jar;C:\Users\dxz-DC\.m2\repository\com\baomidou\mybatis-plus-annotation\3.3.2\mybatis-plus-annotation-3.3.2.jar;C:\Users\dxz-DC\.m2\repository\com\github\jsqlparser\jsqlparser\3.1\jsqlparser-3.1.jar;C:\Users\dxz-DC\.m2\repository\com\github\penggle\kaptcha\2.3.2\kaptcha-2.3.2.jar;C:\Users\dxz-DC\.m2\repository\com\jhlabs\filters\2.0.235-1\filters-2.0.235-1.jar;C:\Users\dxz-DC\.m2\repository\commons-codec\commons-codec\1.15\commons-codec-1.15.jar" com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 com.imooc.reader.service.impl.MemberServiceImplTest,testCreateMember
23:27:12 DEBUG [main] o.s.t.c.j.SpringJUnit4ClassRunner -SpringJUnit4ClassRunner constructor called with [class com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.context.BootstrapUtils -Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
23:27:12 DEBUG [main] o.s.t.context.BootstrapUtils -Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
23:27:12 DEBUG [main] o.s.t.context.BootstrapUtils -Instantiating TestContextBootstrapper for test class [com.imooc.reader.service.impl.MemberServiceImplTest] from class [org.springframework.test.context.support.DefaultTestContextBootstrapper]
23:27:12 DEBUG [main] o.s.t.c.s.AbstractDelegatingSmartContextLoader -Delegating to GenericXmlContextLoader to process context configuration [ContextConfigurationAttributes@7a30d1e6 declaringClass = 'com.imooc.reader.service.impl.MemberServiceImplTest', classes = '{}', locations = '{classpath:applicationContext.xml}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader'].
23:27:12 DEBUG [main] o.s.t.c.s.ActiveProfilesUtils -Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.c.s.DefaultTestContextBootstrapper -@TestExecutionListeners is not present for class [com.imooc.reader.service.impl.MemberServiceImplTest]: using defaults.
23:27:12 INFO [main] o.s.t.c.s.DefaultTestContextBootstrapper -Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
23:27:12 INFO [main] o.s.t.c.s.DefaultTestContextBootstrapper -Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@32464a14, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4e4aea35, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1442d7b5, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1efee8e7, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1ee807c6, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@76a4d6c, org.springframework.test.context.event.EventPublishingTestExecutionListener@517cd4b]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved @ProfileValueSourceConfiguration [null] for test class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved @ProfileValueSourceConfiguration [null] for test class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved @ProfileValueSourceConfiguration [null] for test class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved @ProfileValueSourceConfiguration [null] for test class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.c.s.AbstractDirtiesContextTestExecutionListener -Before test class: context [DefaultTestContext@10b48321 testClass = MemberServiceImplTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, 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].
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved @ProfileValueSourceConfiguration [null] for test class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.a.ProfileValueUtils -Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.imooc.reader.service.impl.MemberServiceImplTest]
23:27:12 DEBUG [main] o.s.t.c.s.DependencyInjectionTestExecutionListener -Performing dependency injection for test context [[DefaultTestContext@10b48321 testClass = MemberServiceImplTest, testInstance = null(com.imooc.reader.service.impl.MemberServiceImplTest), testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]], attributes = map[[empty]]]].
23:27:12 DEBUG [main] o.s.t.c.s.AbstractDelegatingSmartContextLoader -Delegating to GenericXmlContextLoader to load context from [MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]].
23:27:12 DEBUG [main] o.s.t.c.s.AbstractGenericContextLoader -Loading ApplicationContext for merged context configuration [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]].
23:27:12 DEBUG [main] o.s.c.env.StandardEnvironment -Activating profiles []
23:27:12 DEBUG [main] o.s.c.a.ClassPathBeanDefinitionScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\controller\KaptchaController.class]
23:27:12 DEBUG [main] o.s.c.a.ClassPathBeanDefinitionScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\controller\MemberController.class]
23:27:12 DEBUG [main] o.s.c.a.ClassPathBeanDefinitionScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\controller\TestController.class]
23:27:12 DEBUG [main] o.s.c.a.ClassPathBeanDefinitionScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\service\CategoryServiceImpl.class]
23:27:12 DEBUG [main] o.s.c.a.ClassPathBeanDefinitionScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\service\TestService.class]
23:27:12 DEBUG [main] o.s.c.a.ClassPathBeanDefinitionScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\service\impl\MemberServiceImpl.class]
23:27:12 DEBUG [main] o.s.b.f.x.XmlBeanDefinitionReader -Loaded 39 bean definitions from class path resource [applicationContext.xml]
23:27:12 DEBUG [main] o.s.c.s.GenericApplicationContext -Refreshing org.springframework.context.support.GenericApplicationContext@51931956
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.mybatis.spring.mapper.MapperScannerConfigurer#0'
23:27:12 DEBUG [main] o.a.ibatis.logging.LogFactory -Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\mapper\BookMapper.class]
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\mapper\CategoryMapper.class]
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\mapper\MemberMapper.class]
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Identified candidate component class: file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\com\imooc\reader\mapper\TestMapper.class]
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Creating MapperFactoryBean with name 'bookMapper' and 'com.imooc.reader.mapper.BookMapper' mapperInterface
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Enabling autowire by type for MapperFactoryBean with name 'bookMapper'.
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Creating MapperFactoryBean with name 'categoryMapper' and 'com.imooc.reader.mapper.CategoryMapper' mapperInterface
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Enabling autowire by type for MapperFactoryBean with name 'categoryMapper'.
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Creating MapperFactoryBean with name 'memberMapper' and 'com.imooc.reader.mapper.MemberMapper' mapperInterface
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Enabling autowire by type for MapperFactoryBean with name 'memberMapper'.
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Creating MapperFactoryBean with name 'testMapper' and 'com.imooc.reader.mapper.TestMapper' mapperInterface
23:27:12 DEBUG [main] o.m.s.m.ClassPathMapperScanner -Enabling autowire by type for MapperFactoryBean with name 'testMapper'.
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerProcessor'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.context.event.internalEventListenerFactory'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.transaction.config.internalTransactionalEventListenerFactory'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.aop.config.internalAutoProxyCreator'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'kaptchaController'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'kaptchaProducer'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'memberController'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'testController'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'categoryService'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'categoryMapper'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'sessionFactory'
23:27:12 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'dataSource'
23:27:13 DEBUG [main] c.b.m.e.s.MybatisSqlSessionFactoryBean -Parsed configuration file: 'class path resource [mybatis-config.xml]'
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.insert
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.delete
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.deleteByMap
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.deleteById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.deleteBatchIds
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.update
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.updateById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectBatchIds
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectByMap
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectOne
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectCount
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectMaps
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectMapsPage
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectObjs
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectList
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.BookMapper.selectPage
23:27:13 DEBUG [main] c.b.m.e.s.MybatisSqlSessionFactoryBean -Parsed mapper file: 'file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\mappers\book.xml]'
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.insert
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.delete
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.deleteByMap
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.deleteById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.deleteBatchIds
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.update
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.updateById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectBatchIds
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectByMap
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectOne
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectCount
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectMaps
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectMapsPage
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectObjs
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectList
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.CategoryMapper.selectPage
23:27:13 DEBUG [main] c.b.m.e.s.MybatisSqlSessionFactoryBean -Parsed mapper file: 'file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\mappers\category.xml]'
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.insertSample
23:27:13 WARN [main] c.b.m.c.m.TableInfoHelper -This "id" is the table primary key by @TableId annotation in Class: "com.imooc.reader.entity.Test",So @TableField annotation will not work!
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.insert
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.delete
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.deleteByMap
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.deleteById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.deleteBatchIds
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.update
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.updateById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectById
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectBatchIds
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectByMap
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectOne
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectCount
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectMaps
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectMapsPage
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectObjs
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectList
23:27:13 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.TestMapper.selectPage
23:27:13 DEBUG [main] c.b.m.e.s.MybatisSqlSessionFactoryBean -Parsed mapper file: 'file [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\mappers\test.xml]'
_ _ |_ _ _|_. ___ _ | _
| | |\/|_)(_| | |_\ |_)||_|_\
/ |
3.3.2
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'testService'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'testMapper'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'MemberService'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'memberMapper'
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.insert
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.delete
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.deleteByMap
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.deleteById
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.deleteBatchIds
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.update
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.updateById
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectById
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectBatchIds
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectByMap
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectOne
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectCount
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectMaps
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectMapsPage
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectObjs
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectList
23:27:14 DEBUG [main] c.b.m.c.MybatisConfiguration -addMappedStatement: com.imooc.reader.mapper.MemberMapper.selectPage
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'mvcContentNegotiationManager'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'mvcCorsConfigurations'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.handler.MappedInterceptor#0'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0'
23:27:14 DEBUG [main] o.s.w.s.m.m.a.RequestMappingHandlerMapping -5 mappings in 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter'
23:27:14 DEBUG [main] o.s.w.s.m.m.a.RequestMappingHandlerAdapter -ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'mvcUriComponentsContributor'
23:27:14 DEBUG [main] o.s.w.s.m.m.a.RequestMappingHandlerAdapter -ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0'
23:27:14 DEBUG [main] o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver -ControllerAdvice beans: 0 @ExceptionHandler, 1 ResponseBodyAdvice
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0'
23:27:14 DEBUG [main] o.s.w.s.h.SimpleUrlHandlerMapping -Patterns [/**] in 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'freemarkerConfig'
23:27:14 DEBUG [main] o.s.w.s.v.f.FreeMarkerConfigurer -Template loader path [class path resource [WEB-INF/ftl]] resolved to file path [C:\Users\dxz-DC\eclipse-workspace\imooc-reader\target\classes\WEB-INF\ftl]
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'ViewResolver'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'transactionManager'
23:27:14 DEBUG [main] o.s.b.f.s.DefaultListableBeanFactory -Creating shared instance of singleton bean 'bookMapper'
23:27:14 DEBUG [main] o.s.t.c.c.DefaultCacheAwareContextLoaderDelegate -Storing ApplicationContext [1368594774] in cache under key [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]
23:27:14 DEBUG [main] o.s.test.context.cache -Spring test ApplicationContext cache statistics: [DefaultContextCache@678040b3 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 0, missCount = 1]
23:27:14 DEBUG [main] o.s.t.c.c.DefaultCacheAwareContextLoaderDelegate -Retrieved ApplicationContext [1368594774] from cache with key [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]
23:27:14 DEBUG [main] o.s.test.context.cache -Spring test ApplicationContext cache statistics: [DefaultContextCache@678040b3 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 1, missCount = 1]
23:27:14 DEBUG [main] o.s.t.c.s.AbstractDirtiesContextTestExecutionListener -Before test method: context [DefaultTestContext@10b48321 testClass = MemberServiceImplTest, testInstance = null(com.imooc.reader.service.impl.MemberServiceImplTest), testMethod = testCreateMember@MemberServiceImplTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, 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].
23:27:14 DEBUG [main] o.s.t.c.c.DefaultCacheAwareContextLoaderDelegate -Retrieved ApplicationContext [1368594774] from cache with key [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]
23:27:14 DEBUG [main] o.s.test.context.cache -Spring test ApplicationContext cache statistics: [DefaultContextCache@678040b3 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 2, missCount = 1]
23:27:14 DEBUG [main] o.s.t.c.c.DefaultCacheAwareContextLoaderDelegate -Retrieved ApplicationContext [1368594774] from cache with key [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]
23:27:14 DEBUG [main] o.s.test.context.cache -Spring test ApplicationContext cache statistics: [DefaultContextCache@678040b3 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 3, missCount = 1]
23:27:14 DEBUG [main] o.s.j.d.DataSourceTransactionManager -Creating new transaction with name [com.imooc.reader.service.impl.MemberServiceImpl.createMember]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
23:27:14 INFO [main] c.a.druid.pool.DruidDataSource -{dataSource-1} inited
23:27:15 DEBUG [main] o.s.j.d.DataSourceTransactionManager -Acquired Connection [com.mysql.cj.jdbc.ConnectionImpl@7e46d648] for JDBC transaction
23:27:15 DEBUG [main] o.s.j.d.DataSourceTransactionManager -Switching JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@7e46d648] to manual commit
23:27:15 DEBUG [main] o.m.spring.SqlSessionUtils -Creating a new SqlSession
23:27:15 DEBUG [main] o.m.spring.SqlSessionUtils -Registering transaction synchronization for SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@878537d]
23:27:15 DEBUG [main] o.m.spring.SqlSessionUtils -Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@878537d]
23:27:15 DEBUG [main] o.m.spring.SqlSessionUtils -Transaction synchronization deregistering SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@878537d]
23:27:15 DEBUG [main] o.m.spring.SqlSessionUtils -Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@878537d]
23:27:15 DEBUG [main] o.s.j.d.DataSourceTransactionManager -Initiating transaction rollback
23:27:15 DEBUG [main] o.s.j.d.DataSourceTransactionManager -Rolling back JDBC transaction on Connection [com.mysql.cj.jdbc.ConnectionImpl@7e46d648]
23:27:15 DEBUG [main] o.s.j.d.DataSourceTransactionManager -Releasing JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@7e46d648] after transaction
23:27:15 DEBUG [main] o.s.t.c.c.DefaultCacheAwareContextLoaderDelegate -Retrieved ApplicationContext [1368594774] from cache with key [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]
23:27:15 DEBUG [main] o.s.test.context.cache -Spring test ApplicationContext cache statistics: [DefaultContextCache@678040b3 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 4, missCount = 1]
23:27:15 DEBUG [main] o.s.t.c.c.DefaultCacheAwareContextLoaderDelegate -Retrieved ApplicationContext [1368594774] from cache with key [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]
23:27:15 DEBUG [main] o.s.test.context.cache -Spring test ApplicationContext cache statistics: [DefaultContextCache@678040b3 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 5, missCount = 1]
23:27:15 DEBUG [main] o.s.t.c.s.AbstractDirtiesContextTestExecutionListener -After test method: context [DefaultTestContext@10b48321 testClass = MemberServiceImplTest, testInstance = null(com.imooc.reader.service.impl.MemberServiceImplTest), testMethod = testCreateMember@MemberServiceImplTest, testException = org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'ew' in 'class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper', mergedContextConfiguration = [MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, 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].
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'ew' in 'class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper'
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
at com.sun.proxy.$Proxy27.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96)
at com.sun.proxy.$Proxy33.selectList(Unknown Source)
at com.imooc.reader.service.impl.MemberServiceImpl.createMember(MemberServiceImpl.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy34.createMember(Unknown Source)
at com.imooc.reader.service.impl.MemberServiceImplTest.testCreateMember(MemberServiceImplTest.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'ew' in 'class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper'
at org.apache.ibatis.reflection.Reflector.getGetInvoker(Reflector.java:374)
at org.apache.ibatis.reflection.MetaClass.getGetInvoker(MetaClass.java:164)
at org.apache.ibatis.reflection.wrapper.BeanWrapper.getBeanProperty(BeanWrapper.java:162)
at org.apache.ibatis.reflection.wrapper.BeanWrapper.get(BeanWrapper.java:49)
at org.apache.ibatis.reflection.MetaObject.getValue(MetaObject.java:122)
at org.apache.ibatis.scripting.xmltags.DynamicContext$ContextMap.get(DynamicContext.java:102)
at org.apache.ibatis.scripting.xmltags.DynamicContext$ContextAccessor.getProperty(DynamicContext.java:113)
at org.apache.ibatis.ognl.OgnlRuntime.getProperty(OgnlRuntime.java:3356)
at org.apache.ibatis.ognl.ASTProperty.getValueBody(ASTProperty.java:121)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTNotEq.getValueBody(ASTNotEq.java:50)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.ASTAnd.getValueBody(ASTAnd.java:61)
at org.apache.ibatis.ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at org.apache.ibatis.ognl.SimpleNode.getValue(SimpleNode.java:258)
at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:586)
at org.apache.ibatis.ognl.Ognl.getValue(Ognl.java:550)
at org.apache.ibatis.scripting.xmltags.OgnlCache.getValue(OgnlCache.java:46)
at org.apache.ibatis.scripting.xmltags.ExpressionEvaluator.evaluateBoolean(ExpressionEvaluator.java:32)
at org.apache.ibatis.scripting.xmltags.IfSqlNode.apply(IfSqlNode.java:34)
at org.apache.ibatis.scripting.xmltags.ChooseSqlNode.apply(ChooseSqlNode.java:35)
at org.apache.ibatis.scripting.xmltags.MixedSqlNode.lambda$apply$0(MixedSqlNode.java:32)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.apache.ibatis.scripting.xmltags.MixedSqlNode.apply(MixedSqlNode.java:32)
at org.apache.ibatis.scripting.xmltags.DynamicSqlSource.getBoundSql(DynamicSqlSource.java:39)
at org.apache.ibatis.mapping.MappedStatement.getBoundSql(MappedStatement.java:305)
at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:88)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)
... 52 more
23:27:15 DEBUG [main] o.s.t.c.c.DefaultCacheAwareContextLoaderDelegate -Retrieved ApplicationContext [1368594774] from cache with key [[MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, locations = '{classpath:applicationContext.xml}', classes = '{}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{}', contextCustomizers = set[[empty]], contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader', parent = [null]]]
23:27:15 DEBUG [main] o.s.test.context.cache -Spring test ApplicationContext cache statistics: [DefaultContextCache@678040b3 size = 1, maxSize = 32, parentContextCount = 0, hitCount = 6, missCount = 1]
23:27:15 DEBUG [main] o.s.t.c.s.AbstractDirtiesContextTestExecutionListener -After test class: context [DefaultTestContext@10b48321 testClass = MemberServiceImplTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6b67034 testClass = MemberServiceImplTest, 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].
23:27:15 DEBUG [SpringContextShutdownHook] o.s.c.s.GenericApplicationContext -Closing org.springframework.context.support.GenericApplicationContext@51931956, started on Tue Jul 19 23:27:12 CST 2022
23:27:15 INFO [SpringContextShutdownHook] c.a.druid.pool.DruidDataSource -{dataSource-1} closing ...
23:27:15 INFO [SpringContextShutdownHook] c.a.druid.pool.DruidDataSource -{dataSource-1} closed
Process finished with exit code -1
package com.imooc.reader.service;
import com.imooc.reader.entity.Member;
public interface MemberService {
public Member createMember(String username, String password, String nickname);
}package com.imooc.reader.service.exception;
public class BussinessException extends RuntimeException{
private String code;
private String msg;
public BussinessException(String code, String msg) {
super(code + ":" + msg);
this.code = code;
this.msg = msg;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}package com.imooc.reader.mapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imooc.reader.entity.Category;
import com.imooc.reader.entity.Member;
import java.util.List;
public interface MemberMapper extends BaseMapper<Category>{
List<Member> selectList(QueryWrapper<Member> queryWrapper);
public void insert(Member member);
}package com.imooc.reader.utils;
import org.springframework.util.DigestUtils;
public class MD5Utils {
public static String md5Digest(String source,Integer salt){
char[] ca = source.toCharArray();
System.out.println(DigestUtils.md5DigestAsHex(new String(ca).getBytes()));
for(int i = 0; i< ca.length; i++){
ca[i] = (char) (ca[i] + salt);
}
String target = new String(ca);
String md5 = DigestUtils.md5DigestAsHex(target.getBytes());
return md5;
}
}package com.imooc.reader.entity;
import java.util.Date;
public class Member {
private Long memberId;
private String username;
private String password;
private Integer salt;
private Date createTime;
private String nickname;
public Long getMemberId() {
return memberId;
}
public void setMemberId(Long memberId) {
this.memberId = memberId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Integer getSalt() {
return salt;
}
public void setSalt(Integer salt) {
this.salt = salt;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
}package com.imooc.reader.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
@Controller
public class MemberController {
@GetMapping("/register.html")
public ModelAndView showRegister() {
return new ModelAndView("/register");
}
@PostMapping("/registe")
@ResponseBody
public Map registe(String vc, String username, String password, String nickname, HttpServletRequest request, HttpServletResponse response){
String verifyCode = (String)request.getSession().getAttribute("kaptchaVerifyCode");
Map result = new HashMap();
if(vc == null || verifyCode==null || !vc.equalsIgnoreCase(verifyCode)){ //equalsIgnoreCase 忽略大小写
result.put("code","VC01");
result.put("msg","验证码错误");
}else {
result.put("code","0");
result.put("msg","success");
}
return result;
}
}package com.imooc.reader.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.imooc.reader.entity.Member;
import com.imooc.reader.mapper.MemberMapper;
import com.imooc.reader.service.MemberService;
import com.imooc.reader.service.exception.BussinessException;
import com.imooc.reader.utils.MD5Utils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Random;
@Service("MemberService")
@Transactional
public class MemberServiceImpl implements MemberService {
@Resource
private MemberMapper memberMapper ;
@Override
public Member createMember(String username, String password, String nickname) {
QueryWrapper<Member> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("username",username);
List<Member> memberList = memberMapper.selectList(queryWrapper);
if(memberList.size()>0){
throw new BussinessException("M01","user has existed");
}
Member member = new Member();
member.setUsername(username);
member.setNickname(nickname);
int salt = new Random().nextInt(1000)+1000;
String md5 = MD5Utils.md5Digest(password,salt);
member.setPassword(md5);
member.setSalt(salt);
member.setCreateTime(new Date());
memberMapper.insert(member);
return member;
}
}package com.imooc.reader.service.impl;
import com.imooc.reader.service.MemberService;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.annotation.Resource;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class MemberServiceImplTest extends TestCase {
@Resource
private MemberService memberService;
@Test
public void testCreateMember() {
memberService.createMember("s123456","123456","iamsai");
}
}正在回答 回答被采纳积分+1
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.imooc</groupId> <artifactId>imooc-reader</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> </properties> <repositories> <repository> <id>aliyun</id> <name>aliyun</name> <url>https://maven.aliyun.com/repository/public</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.2.6.RELEASE</version> </dependency> <dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.31</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>5.2.6.RELEASE</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.11.0</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.11.0</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.11.0</version> </dependency> <!--About Mybatis--> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>5.2.6.RELEASE</version> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.9</version> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>2.0.3</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.26</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.2.8</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>5.2.6.RELEASE</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.9</version> </dependency> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus</artifactId> <version>3.3.2</version> </dependency> <dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.15</version> </dependency> </dependencies> </project>
- 参与学习 人
- 提交作业 9410 份
- 解答问题 16556 个
综合就业常年第一,编程排行常年霸榜,无需脱产即可学习,北上广深月薪过万 无论你是未就业的学生还是想转行的在职人员,不需要基础,只要你有梦想,想高薪
了解课程


恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星