问题1:Springboot多模块+MyBaties Plus 报错信息如下:

4 篇文章 0 订阅
3 篇文章 0 订阅

F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\bin\java.exe “-javaagent:F:\Java\ProjectAdress\IDEA\IntelliJ IDEA 2019.2.4\lib\idea_rt.jar=51168:F:\Java\ProjectAdress\IDEA\IntelliJ IDEA 2019.2.4\bin” -Dfile.encoding=UTF-8 -classpath F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\charsets.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\deploy.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\javaws.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\jce.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\jfr.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\jsse.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\management-agent.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\plugin.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\resources.jar;F:\Java\ProjectAdress\dev\Java\jdk1.8.0_131\jre\lib\rt.jar;F:\Java\IDEAProject\moses\moses-web\target\classes;F:\Java\IDEAProject\moses\moses-service\target\classes;F:\Java\ProjectAdress\Maven.m2\repository\ma\glasnost\orika\orika-core\1.5.1\orika-core-1.5.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\javassist\javassist\3.19.0-GA\javassist-3.19.0-GA.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\thoughtworks\paranamer\paranamer\2.8\paranamer-2.8.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\googlecode\concurrentlinkedhashmap\concurrentlinkedhashmap-lru\1.4.2\concurrentlinkedhashmap-lru-1.4.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\carrotsearch\java-sizeof\0.0.4\java-sizeof-0.0.4.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\codehaus\janino\janino\3.0.12\janino-3.0.12.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\codehaus\janino\commons-compiler\3.0.12\commons-compiler-3.0.12.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\apache\commons\commons-lang3\3.8.1\commons-lang3-3.8.1.jar;F:\Java\IDEAProject\moses\moses-dao\target\classes;F:\Java\ProjectAdress\Maven.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.2\mybatis-spring-boot-starter-1.3.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.2\mybatis-spring-boot-autoconfigure-1.3.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\mybatis\mybatis\3.4.6\mybatis-3.4.6.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\mybatis\mybatis-spring\1.3.2\mybatis-spring-1.3.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\mysql\mysql-connector-java\8.0.16\mysql-connector-java-8.0.16.jar;F:\Java\IDEAProject\moses\moses-entity\target\classes;F:\Java\IDEAProject\moses\moses-util\target\classes;F:\Java\ProjectAdress\Maven.m2\repository\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\swagger\swagger-annotations\1.5.20\swagger-annotations-1.5.20.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\swagger\swagger-models\1.5.20\swagger-models-1.5.20.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\google\guava\guava\20.0\guava-20.0.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\mapstruct\mapstruct\1.2.0.Final\mapstruct-1.2.0.Final.jar;F:\Java\ProjectAdress\Maven.m2\repository\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\slf4j\jcl-over-slf4j\1.7.26\jcl-over-slf4j-1.7.26.jar;F:\Java\ProjectAdress\Maven.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;F:\Java\ProjectAdress\Maven.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-web\2.1.6.RELEASE\spring-boot-starter-web-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter\2.1.6.RELEASE\spring-boot-starter-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot\2.1.6.RELEASE\spring-boot-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-json\2.1.6.RELEASE\spring-boot-starter-json-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9\jackson-databind-2.9.9.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.9\jackson-datatype-jdk8-2.9.9.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.9\jackson-datatype-jsr310-2.9.9.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.9\jackson-module-parameter-names-2.9.9.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.6.RELEASE\spring-boot-starter-tomcat-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.21\tomcat-embed-core-9.0.21.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.21\tomcat-embed-el-9.0.21.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.21\tomcat-embed-websocket-9.0.21.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\hibernate\validator\hibernate-validator\6.0.17.Final\hibernate-validator-6.0.17.Final.jar;F:\Java\ProjectAdress\Maven.m2\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-web\5.1.8.RELEASE\spring-web-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-beans\5.1.8.RELEASE\spring-beans-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-webmvc\5.1.8.RELEASE\spring-webmvc-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-aop\5.1.8.RELEASE\spring-aop-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-context\5.1.8.RELEASE\spring-context-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-expression\5.1.8.RELEASE\spring-expression-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\projectlombok\lombok\1.16.18\lombok-1.16.18.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.1.6.RELEASE\spring-boot-starter-logging-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-test\2.1.6.RELEASE\spring-boot-starter-test-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-test\2.1.6.RELEASE\spring-boot-test-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\2.1.6.RELEASE\spring-boot-test-autoconfigure-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\jayway\jsonpath\json-path\2.4.0\json-path-2.4.0.jar;F:\Java\ProjectAdress\Maven.m2\repository\net\minidev\json-smart\2.3\json-smart-2.3.jar;F:\Java\ProjectAdress\Maven.m2\repository\net\minidev\accessors-smart\1.2\accessors-smart-1.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;F:\Java\ProjectAdress\Maven.m2\repository\junit\junit\4.12\junit-4.12.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\assertj\assertj-core\3.11.1\assertj-core-3.11.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\mockito\mockito-core\2.23.4\mockito-core-2.23.4.jar;F:\Java\ProjectAdress\Maven.m2\repository\net\bytebuddy\byte-buddy\1.9.13\byte-buddy-1.9.13.jar;F:\Java\ProjectAdress\Maven.m2\repository\net\bytebuddy\byte-buddy-agent\1.9.13\byte-buddy-agent-1.9.13.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\skyscreamer\jsonassert\1.5.0\jsonassert-1.5.0.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-core\5.1.8.RELEASE\spring-core-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-jcl\5.1.8.RELEASE\spring-jcl-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-test\5.1.8.RELEASE\spring-test-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\xmlunit\xmlunit-core\2.6.2\xmlunit-core-2.6.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\baomidou\mybatis-plus-boot-starter\3.1.1\mybatis-plus-boot-starter-3.1.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\baomidou\mybatis-plus\3.1.1\mybatis-plus-3.1.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\baomidou\mybatis-plus-extension\3.1.1\mybatis-plus-extension-3.1.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\baomidou\mybatis-plus-core\3.1.1\mybatis-plus-core-3.1.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\baomidou\mybatis-plus-annotation\3.1.1\mybatis-plus-annotation-3.1.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\github\jsqlparser\jsqlparser\1.2\jsqlparser-1.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.6.RELEASE\spring-boot-autoconfigure-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.6.RELEASE\spring-boot-starter-jdbc-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-jdbc\5.1.8.RELEASE\spring-jdbc-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.1.6.RELEASE\spring-boot-starter-data-jpa-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.1.6.RELEASE\spring-boot-starter-aop-2.1.6.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;F:\Java\ProjectAdress\Maven.m2\repository\javax\transaction\javax.transaction-api\1.3\javax.transaction-api-1.3.jar;F:\Java\ProjectAdress\Maven.m2\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\hibernate\hibernate-core\5.3.10.Final\hibernate-core-5.3.10.Final.jar;F:\Java\ProjectAdress\Maven.m2\repository\javax\persistence\javax.persistence-api\2.2\javax.persistence-api-2.2.jar;F:\Java\ProjectAdress\Maven.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\jboss\jandex\2.0.5.Final\jandex-2.0.5.Final.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\dom4j\dom4j\2.1.1\dom4j-2.1.1.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.0.4.Final\hibernate-commons-annotations-5.0.4.Final.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\data\spring-data-jpa\2.1.9.RELEASE\spring-data-jpa-2.1.9.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\data\spring-data-commons\2.1.9.RELEASE\spring-data-commons-2.1.9.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-orm\5.1.8.RELEASE\spring-orm-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-tx\5.1.8.RELEASE\spring-tx-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\org\springframework\spring-aspects\5.1.8.RELEASE\spring-aspects-5.1.8.RELEASE.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\alibaba\fastjson\1.2.4\fastjson-1.2.4.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\alibaba\druid-spring-boot-starter\1.1.10\druid-spring-boot-starter-1.1.10.jar;F:\Java\ProjectAdress\Maven.m2\repository\com\alibaba\druid\1.1.10\druid-1.1.10.jar com.zhiqingwu.web.WebApplication

. ____ _ __ _ _
/\ / __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ |
| .__|| ||| |__, | / / / /
=|_|======|/=////
:: Spring Boot :: (v2.1.6.RELEASE)

2019-12-30 20:56:33.237 INFO 3512 — [ main] com.zhiqingwu.web.WebApplication : Starting WebApplication on SKY-20171227FOS with PID 3512 (F:\Java\IDEAProject\moses\moses-web\target\classes started by Administrator in F:\Java\IDEAProject\moses)
2019-12-30 20:56:33.244 INFO 3512 — [ main] com.zhiqingwu.web.WebApplication : No active profile set, falling back to default profiles: default
2019-12-30 20:56:33.985 WARN 3512 — [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in ‘[com.zhiqingwu.mapper.*]’ package. Please check your configuration.
2019-12-30 20:56:34.113 WARN 3512 — [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in ‘[com.zhiqingwu.web]’ package. Please check your configuration.
2019-12-30 20:56:34.119 WARN 3512 — [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in ‘[com.zhiqingwu.web]’ package. Please check your configuration.
2019-12-30 20:56:34.160 INFO 3512 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-12-30 20:56:34.176 INFO 3512 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 8ms. Found 0 repository interfaces.
2019-12-30 20:56:34.573 INFO 3512 — [ main] trationDelegate B e a n P o s t P r o c e s s o r C h e c k e r : B e a n ′ o r g . s p r i n g f r a m e w o r k . t r a n s a c t i o n . a n n o t a t i o n . P r o x y T r a n s a c t i o n M a n a g e m e n t C o n f i g u r a t i o n ′ o f t y p e [ o r g . s p r i n g f r a m e w o r k . t r a n s a c t i o n . a n n o t a t i o n . P r o x y T r a n s a c t i o n M a n a g e m e n t C o n f i g u r a t i o n BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration BeanPostProcessorChecker:Beanorg.springframework.transaction.annotation.ProxyTransactionManagementConfigurationoftype[org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIB 7817 c 310 ] i s n o t e l i g i b l e f o r g e t t i n g p r o c e s s e d b y a l l B e a n P o s t P r o c e s s o r s ( f o r e x a m p l e : n o t e l i g i b l e f o r a u t o − p r o x y i n g ) 2019 − 12 − 3020 : 56 : 34.976 I N F O 3512 − − − [ m a i n ] o . s . b . w . e m b e d d e d . t o m c a t . T o m c a t W e b S e r v e r : T o m c a t i n i t i a l i z e d w i t h p o r t ( s ) : 8081 ( h t t p ) 2019 − 12 − 3020 : 56 : 35.003 I N F O 3512 − − − [ m a i n ] o . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d S e r v i c e : S t a r t i n g s e r v i c e [ T o m c a t ] 2019 − 12 − 3020 : 56 : 35.003 I N F O 3512 − − − [ m a i n ] o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d E n g i n e : S t a r t i n g S e r v l e t e n g i n e : [ A p a c h e T o m c a t / 9.0.21 ] 2019 − 12 − 3020 : 56 : 35.177 I N F O 3512 − − − [ m a i n ] o . a . c . c . C . [ T o m c a t ] . [ l o c a l h o s t ] . [ / ] : I n i t i a l i z i n g S p r i n g e m b e d d e d W e b A p p l i c a t i o n C o n t e x t 2019 − 12 − 3020 : 56 : 35.177 I N F O 3512 − − − [ m a i n ] o . s . w e b . c o n t e x t . C o n t e x t L o a d e r : R o o t W e b A p p l i c a t i o n C o n t e x t : i n i t i a l i z a t i o n c o m p l e t e d i n 1777 m s 2019 − 12 − 3020 : 56 : 35.321 I N F O 3512 − − − [ m a i n ] c . a . d . s . b . a . D r u i d D a t a S o u r c e A u t o C o n f i g u r e : I n i t D r u i d D a t a S o u r c e L o a d i n g c l a s s ‘ c o m . m y s q l . j d b c . D r i v e r ′ . T h i s i s d e p r e c a t e d . T h e n e w d r i v e r c l a s s i s ‘ c o m . m y s q l . c j . j d b c . D r i v e r ′ . T h e d r i v e r i s a u t o m a t i c a l l y r e g i s t e r e d v i a t h e S P I a n d m a n u a l l o a d i n g o f t h e d r i v e r c l a s s i s g e n e r a l l y u n n e c e s s a r y . 2019 − 12 − 3020 : 56 : 35.471 I N F O 3512 − − − [ m a i n ] c o m . a l i b a b a . d r u i d . p o o l . D r u i d D a t a S o u r c e : d a t a S o u r c e − 1 i n i t e d 2019 − 12 − 3020 : 56 : 35.952 I N F O 3512 − − − [ m a i n ] o . h i b e r n a t e . j p a . i n t e r n a l . u t i l . L o g H e l p e r : H H H 000204 : P r o c e s s i n g P e r s i s t e n c e U n i t I n f o [ n a m e : d e f a u l t . . . ] 2019 − 12 − 3020 : 56 : 36.024 I N F O 3512 − − − [ m a i n ] o r g . h i b e r n a t e . V e r s i o n : H H H 000412 : H i b e r n a t e C o r e 5.3.10. F i n a l 2019 − 12 − 3020 : 56 : 36.026 I N F O 3512 − − − [ m a i n ] o r g . h i b e r n a t e . c f g . E n v i r o n m e n t : H H H 000206 : h i b e r n a t e . p r o p e r t i e s n o t f o u n d 2019 − 12 − 3020 : 56 : 36.179 I N F O 3512 − − − [ m a i n ] o . h i b e r n a t e . a n n o t a t i o n s . c o m m o n . V e r s i o n : H C A N N 000001 : H i b e r n a t e C o m m o n s A n n o t a t i o n s 5.0.4. F i n a l 2019 − 12 − 3020 : 56 : 36.343 I N F O 3512 − − − [ m a i n ] o r g . h i b e r n a t e . d i a l e c t . D i a l e c t : H H H 000400 : U s i n g d i a l e c t : o r g . h i b e r n a t e . d i a l e c t . M y S Q L 5 D i a l e c t 2019 − 12 − 3020 : 56 : 36.548 I N F O 3512 − − − [ m a i n ] j . L o c a l C o n t a i n e r E n t i t y M a n a g e r F a c t o r y B e a n : I n i t i a l i z e d J P A E n t i t y M a n a g e r F a c t o r y f o r p e r s i s t e n c e u n i t ′ d e f a u l t ′ 2019 − 12 − 3020 : 56 : 36.781 I N F O 3512 − − − [ m a i n ] o . s . s . c o n c u r r e n t . T h r e a d P o o l T a s k E x e c u t o r : I n i t i a l i z i n g E x e c u t o r S e r v i c e ′ a p p l i c a t i o n T a s k E x e c u t o r ′ 2019 − 12 − 3020 : 56 : 36.825 W A R N 3512 − − − [ m a i n ] a W e b C o n f i g u r a t i o n 7817c310] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2019-12-30 20:56:34.976 INFO 3512 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http) 2019-12-30 20:56:35.003 INFO 3512 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-12-30 20:56:35.003 INFO 3512 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.21] 2019-12-30 20:56:35.177 INFO 3512 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-12-30 20:56:35.177 INFO 3512 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1777 ms 2019-12-30 20:56:35.321 INFO 3512 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. 2019-12-30 20:56:35.471 INFO 3512 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2019-12-30 20:56:35.952 INFO 3512 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [ name: default ...] 2019-12-30 20:56:36.024 INFO 3512 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final} 2019-12-30 20:56:36.026 INFO 3512 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found 2019-12-30 20:56:36.179 INFO 3512 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final} 2019-12-30 20:56:36.343 INFO 3512 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect 2019-12-30 20:56:36.548 INFO 3512 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2019-12-30 20:56:36.781 INFO 3512 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2019-12-30 20:56:36.825 WARN 3512 --- [ main] aWebConfiguration 7817c310]isnoteligibleforgettingprocessedbyallBeanPostProcessors(forexample:noteligibleforautoproxying)2019123020:56:34.976INFO3512[main]o.s.b.w.embedded.tomcat.TomcatWebServer:Tomcatinitializedwithport(s):8081(http)2019123020:56:35.003INFO3512[main]o.apache.catalina.core.StandardService:Startingservice[Tomcat]2019123020:56:35.003INFO3512[main]org.apache.catalina.core.StandardEngine:StartingServletengine:[ApacheTomcat/9.0.21]2019123020:56:35.177INFO3512[main]o.a.c.c.C.[Tomcat].[localhost].[/]:InitializingSpringembeddedWebApplicationContext2019123020:56:35.177INFO3512[main]o.s.web.context.ContextLoader:RootWebApplicationContext:initializationcompletedin1777ms2019123020:56:35.321INFO3512[main]c.a.d.s.b.a.DruidDataSourceAutoConfigure:InitDruidDataSourceLoadingclasscom.mysql.jdbc.Driver.Thisisdeprecated.Thenewdriverclassiscom.mysql.cj.jdbc.Driver.ThedriverisautomaticallyregisteredviatheSPIandmanualloadingofthedriverclassisgenerallyunnecessary.2019123020:56:35.471INFO3512[main]com.alibaba.druid.pool.DruidDataSource:dataSource1inited2019123020:56:35.952INFO3512[main]o.hibernate.jpa.internal.util.LogHelper:HHH000204:ProcessingPersistenceUnitInfo[name:default...]2019123020:56:36.024INFO3512[main]org.hibernate.Version:HHH000412:HibernateCore5.3.10.Final2019123020:56:36.026INFO3512[main]org.hibernate.cfg.Environment:HHH000206:hibernate.propertiesnotfound2019123020:56:36.179INFO3512[main]o.hibernate.annotations.common.Version:HCANN000001:HibernateCommonsAnnotations5.0.4.Final2019123020:56:36.343INFO3512[main]org.hibernate.dialect.Dialect:HHH000400:Usingdialect:org.hibernate.dialect.MySQL5Dialect2019123020:56:36.548INFO3512[main]j.LocalContainerEntityManagerFactoryBean:InitializedJPAEntityManagerFactoryforpersistenceunitdefault2019123020:56:36.781INFO3512[main]o.s.s.concurrent.ThreadPoolTaskExecutor:InitializingExecutorServiceapplicationTaskExecutor2019123020:56:36.825WARN3512[main]aWebConfigurationJpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2019-12-30 20:56:36.944 WARN 3512 — [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory
2019-12-30 20:56:36.944 INFO 3512 — [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService ‘applicationTaskExecutor’
2019-12-30 20:56:36.944 INFO 3512 — [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit ‘default’
2019-12-30 20:56:36.950 INFO 3512 — [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2019-12-30 20:56:36.952 INFO 3512 — [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2019-12-30 20:56:36.961 INFO 3512 — [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-12-30 20:56:36.966 ERROR 3512 — [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean 0 ( A b s t r a c t B e a n F a c t o r y . j a v a : 320 )   [ s p r i n g − b e a n s − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 222 )   [ s p r i n g − b e a n s − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 318 )   [ s p r i n g − b e a n s − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 199 )   [ s p r i n g − b e a n s − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 845 )   [ s p r i n g − b e a n s − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 877 )   [ s p r i n g − c o n t e x t − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 549 )   [ s p r i n g − c o n t e x t − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . c o n t e x t . S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . r e f r e s h ( S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . j a v a : 140 )   [ s p r i n g − b o o t − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h ( S p r i n g A p p l i c a t i o n . j a v a : 742 ) [ s p r i n g − b o o t − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h C o n t e x t ( S p r i n g A p p l i c a t i o n . j a v a : 389 ) [ s p r i n g − b o o t − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 311 ) [ s p r i n g − b o o t − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 1213 ) [ s p r i n g − b o o t − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 1202 ) [ s p r i n g − b o o t − 2.1.6. R E L E A S E . j a r : 2.1.6. R E L E A S E ] a t c o m . z h i q i n g w u . w e b . W e b A p p l i c a t i o n . m a i n ( W e b A p p l i c a t i o n . j a v a : 21 ) [ c l a s s e s / : n a ] C a u s e d b y : o r g . s p r i n g f r a m e w o r k . b e a n s . B e a n I n s t a n t i a t i o n E x c e p t i o n : F a i l e d t o i n s t a n t i a t e [ o r g . a p a c h e . i b a t i s . s e s s i o n . S q l S e s s i o n F a c t o r y ] : F a c t o r y m e t h o d ′ s q l S e s s i o n F a c t o r y ′ t h r e w e x c e p t i o n ; n e s t e d e x c e p t i o n i s j a v a . l a n g . N o C l a s s D e f F o u n d E r r o r : o r g / m y b a t i s / l o g g i n g / L o g g e r F a c t o r y a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . S i m p l e I n s t a n t i a t i o n S t r a t e g y . i n s t a n t i a t e ( S i m p l e I n s t a n t i a t i o n S t r a t e g y . j a v a : 185 )   [ s p r i n g − b e a n s − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . C o n s t r u c t o r R e s o l v e r . i n s t a n t i a t e ( C o n s t r u c t o r R e s o l v e r . j a v a : 622 )   [ s p r i n g − b e a n s − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] . . . 19 c o m m o n f r a m e s o m i t t e d C a u s e d b y : j a v a . l a n g . N o C l a s s D e f F o u n d E r r o r : o r g / m y b a t i s / l o g g i n g / L o g g e r F a c t o r y a t c o m . b a o m i d o u . m y b a t i s p l u s . e x t e n s i o n . s p r i n g . M y b a t i s S q l S e s s i o n F a c t o r y B e a n . < c l i n i t > ( M y b a t i s S q l S e s s i o n F a c t o r y B e a n . j a v a : 98 )   [ m y b a t i s − p l u s − e x t e n s i o n − 3.1.1. j a r : 3.1.1 ] a t c o m . b a o m i d o u . m y b a t i s p l u s . a u t o c o n f i g u r e . M y b a t i s P l u s A u t o C o n f i g u r a t i o n . s q l S e s s i o n F a c t o r y ( M y b a t i s P l u s A u t o C o n f i g u r a t i o n . j a v a : 135 )   [ m y b a t i s − p l u s − b o o t − s t a r t e r − 3.1.1. j a r : 3.1.1 ] a t c o m . b a o m i d o u . m y b a t i s p l u s . a u t o c o n f i g u r e . M y b a t i s P l u s A u t o C o n f i g u r a t i o n 0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:742) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1213) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1202) [spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE] at com.zhiqingwu.web.WebApplication.main(WebApplication.java:21) [classes/:na] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE] ... 19 common frames omitted Caused by: java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.<clinit>(MybatisSqlSessionFactoryBean.java:98) ~[mybatis-plus-extension-3.1.1.jar:3.1.1] at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.sqlSessionFactory(MybatisPlusAutoConfiguration.java:135) ~[mybatis-plus-boot-starter-3.1.1.jar:3.1.1] at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration 0(AbstractBeanFactory.java:320) [springbeans5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [springbeans5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [springbeans5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [springbeans5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:845) [springbeans5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) [springcontext5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [springcontext5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) [springboot2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:742)[springboot2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:389)[springboot2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:311)[springboot2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1213)[springboot2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1202)[springboot2.1.6.RELEASE.jar:2.1.6.RELEASE]atcom.zhiqingwu.web.WebApplication.main(WebApplication.java:21)[classes/:na]Causedby:org.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.apache.ibatis.session.SqlSessionFactory]:FactorymethodsqlSessionFactorythrewexception;nestedexceptionisjava.lang.NoClassDefFoundError:org/mybatis/logging/LoggerFactoryatorg.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) [springbeans5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) [springbeans5.1.8.RELEASE.jar:5.1.8.RELEASE]...19commonframesomittedCausedby:java.lang.NoClassDefFoundError:org/mybatis/logging/LoggerFactoryatcom.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.<clinit>(MybatisSqlSessionFactoryBean.java:98) [mybatisplusextension3.1.1.jar:3.1.1]atcom.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.sqlSessionFactory(MybatisPlusAutoConfiguration.java:135) [mybatisplusbootstarter3.1.1.jar:3.1.1]atcom.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIB b 5 e 02 f a a . C G L I B b5e02faa.CGLIB b5e02faa.CGLIBsqlSessionFactory 0 ( < g e n e r a t e d > )   [ m y b a t i s − p l u s − b o o t − s t a r t e r − 3.1.1. j a r : 3.1.1 ] a t c o m . b a o m i d o u . m y b a t i s p l u s . a u t o c o n f i g u r e . M y b a t i s P l u s A u t o C o n f i g u r a t i o n 0(<generated>) ~[mybatis-plus-boot-starter-3.1.1.jar:3.1.1] at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration 0(<generated>) [mybatisplusbootstarter3.1.1.jar:3.1.1]atcom.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIB b 5 e 02 f a a b5e02faa b5e02faa F a s t C l a s s B y S p r i n g C G L I B FastClassBySpringCGLIB FastClassBySpringCGLIB c 04 d a 196. i n v o k e ( < g e n e r a t e d > )   [ m y b a t i s − p l u s − b o o t − s t a r t e r − 3.1.1. j a r : 3.1.1 ] a t o r g . s p r i n g f r a m e w o r k . c g l i b . p r o x y . M e t h o d P r o x y . i n v o k e S u p e r ( M e t h o d P r o x y . j a v a : 244 )   [ s p r i n g − c o r e − 5.1.8. R E L E A S E . j a r : 5.1.8. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . a n n o t a t i o n . C o n f i g u r a t i o n C l a s s E n h a n c e r c04da196.invoke(<generated>) ~[mybatis-plus-boot-starter-3.1.1.jar:3.1.1] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.8.RELEASE.jar:5.1.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer c04da196.invoke(<generated>) [mybatisplusbootstarter3.1.1.jar:3.1.1]atorg.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) [springcore5.1.8.RELEASE.jar:5.1.8.RELEASE]atorg.springframework.context.annotation.ConfigurationClassEnhancerBeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]
at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration E n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB EnhancerBySpringCGLIBb5e02faa.sqlSessionFactory() ~[mybatis-plus-boot-starter-3.1.1.jar:3.1.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]
… 20 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.mybatis.logging.LoggerFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_131]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_131]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) ~[na:1.8.0_131]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_131]
… 32 common frames omitted

Process finished with exit code 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Spring Boot整合Mybatis-Plus操作数据库的流程一般如下: 1. 配置数据库连接 在application.properties或application.yml中配置数据库连接信息,包括数据库类型、IP地址、端口号、数据库名、用户名、密码等。 2. 添加Mybatis-Plus依赖 在pom.xml文件中添加Mybatis-Plus的依赖,例如: ``` <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.1</version> </dependency> ``` 3. 配置Mybatis-Plus 在application.properties或application.yml中添加Mybatis-Plus的配置信息,例如: ``` mybatis-plus.mapper-locations=classpath:mapper/*.xml mybatis-plus.type-aliases-package=com.example.demo.entity ``` 其中,mapper-locations配置了Mybatis-Plus的mapper文件的位置,type-aliases-package配置了Mybatis-Plus的实体类的包名。 4. 编写实体类 编写Java实体类,用于映射数据库表中的数据。实体类可以使用注解@Table和@Column来指定对应的数据库表名和列名。 ``` @Table(name = "user") public class User { @TableId(type = IdType.AUTO) private Long id; @Column(name = "username") private String username; @Column(name = "password") private String password; // 省略getter和setter方法 } ``` 5. 编写Mapper接口 编写Mapper接口,继承Mybatis-Plus提供的BaseMapper接口,用于定义数据库操作方法。例如: ``` public interface UserMapper extends BaseMapper<User> { } ``` 6. 使用Mybatis-Plus进行数据库操作 在需要进行数据库操作的地方,例如Service类中,注入对应的Mapper接口,使用Mybatis-Plus提供的API进行数据库操作。例如: ``` @Service public class UserServiceImpl implements UserService { @Autowired private UserMapper userMapper; @Override public User getUserById(Long id) { return userMapper.selectById(id); } // 其他方法省略 } ``` 在这个例子中,我们注入了UserMapper接口,并使用selectById方法根据主键查询用户数据。 总之,Spring Boot整合Mybatis-Plus操作数据库的流程包括配置数据库连接、添加Mybatis-Plus依赖、配置Mybatis-Plus、编写实体类、编写Mapper接口,使用Mybatis-Plus进行数据库操作。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值