MM-BD 2021-03-31 17:33 采纳率: 100%
浏览 304
已采纳

springboot整合mybatisPlus中报错

错误全部

"C:\Program Files\Java\jdk1.8.0_191\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:D:\work\Idea\IntelliJ IDEA 2020.1.1\lib\idea_rt.jar=52898:D:\work\Idea\IntelliJ IDEA 2020.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_191\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_191\jre\lib\rt.jar;D:\work\Idea\workSpase\myself\zrp-dome\zrp-dome-mybatis\target\classes;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter-web\2.2.5.RELEASE\spring-boot-starter-web-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter\2.2.5.RELEASE\spring-boot-starter-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot\2.2.5.RELEASE\spring-boot-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter-logging\2.2.5.RELEASE\spring-boot-starter-logging-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\work\maven\repository-ali\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\work\maven\repository-ali\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;D:\work\maven\repository-ali\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;D:\work\maven\repository-ali\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\work\maven\repository-ali\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\work\maven\repository-ali\org\springframework\spring-core\5.2.4.RELEASE\spring-core-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\spring-jcl\5.2.4.RELEASE\spring-jcl-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter-json\2.2.5.RELEASE\spring-boot-starter-json-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\core\jackson-databind\2.10.2\jackson-databind-2.10.2.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.2\jackson-datatype-jdk8-2.10.2.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.2\jackson-datatype-jsr310-2.10.2.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.2\jackson-module-parameter-names-2.10.2.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter-tomcat\2.2.5.RELEASE\spring-boot-starter-tomcat-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\org\apache\tomcat\embed\tomcat-embed-core\9.0.31\tomcat-embed-core-9.0.31.jar;D:\work\maven\repository-ali\org\apache\tomcat\embed\tomcat-embed-el\9.0.31\tomcat-embed-el-9.0.31.jar;D:\work\maven\repository-ali\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.31\tomcat-embed-websocket-9.0.31.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter-validation\2.2.5.RELEASE\spring-boot-starter-validation-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\work\maven\repository-ali\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;D:\work\maven\repository-ali\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;D:\work\maven\repository-ali\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\work\maven\repository-ali\org\springframework\spring-web\5.2.4.RELEASE\spring-web-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\spring-beans\5.2.4.RELEASE\spring-beans-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\spring-webmvc\5.2.4.RELEASE\spring-webmvc-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\spring-aop\5.2.4.RELEASE\spring-aop-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\spring-context\5.2.4.RELEASE\spring-context-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\spring-expression\5.2.4.RELEASE\spring-expression-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar;D:\work\maven\repository-ali\com\alibaba\nacos\nacos-client\1.2.1\nacos-client-1.2.1.jar;D:\work\maven\repository-ali\com\alibaba\nacos\nacos-common\1.2.1\nacos-common-1.2.1.jar;D:\work\maven\repository-ali\commons-io\commons-io\2.2\commons-io-2.2.jar;D:\work\maven\repository-ali\com\alibaba\nacos\nacos-api\1.2.1\nacos-api-1.2.1.jar;D:\work\maven\repository-ali\com\alibaba\fastjson\1.2.58\fastjson-1.2.58.jar;D:\work\maven\repository-ali\com\google\guava\guava\22.0\guava-22.0.jar;D:\work\maven\repository-ali\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;D:\work\maven\repository-ali\com\google\errorprone\error_prone_annotations\2.0.18\error_prone_annotations-2.0.18.jar;D:\work\maven\repository-ali\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;D:\work\maven\repository-ali\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;D:\work\maven\repository-ali\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\core\jackson-core\2.10.2\jackson-core-2.10.2.jar;D:\work\maven\repository-ali\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;D:\work\maven\repository-ali\com\alibaba\spring\spring-context-support\1.0.6\spring-context-support-1.0.6.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-commons\2.2.2.RELEASE\spring-cloud-commons-2.2.2.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\security\spring-security-crypto\5.2.2.RELEASE\spring-security-crypto-5.2.2.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-context\2.2.2.RELEASE\spring-cloud-context-2.2.2.RELEASE.jar;D:\work\maven\repository-ali\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-config\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-config-2.2.1.RELEASE.jar;D:\work\maven\repository-ali\com\alibaba\cloud\spring-cloud-starter-alibaba-sentinel\2.2.1.RELEASE\spring-cloud-starter-alibaba-sentinel-2.2.1.RELEASE.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-transport-simple-http\1.7.1\sentinel-transport-simple-http-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-transport-common\1.7.1\sentinel-transport-common-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-datasource-extension\1.7.1\sentinel-datasource-extension-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-annotation-aspectj\1.7.1\sentinel-annotation-aspectj-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-core\1.7.1\sentinel-core-1.7.1.jar;D:\work\maven\repository-ali\org\aspectj\aspectjrt\1.9.5\aspectjrt-1.9.5.jar;D:\work\maven\repository-ali\org\aspectj\aspectjweaver\1.9.2\aspectjweaver-1.9.2.jar;D:\work\maven\repository-ali\com\alibaba\cloud\spring-cloud-circuitbreaker-sentinel\2.2.1.RELEASE\spring-cloud-circuitbreaker-sentinel-2.2.1.RELEASE.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-reactor-adapter\1.7.1\sentinel-reactor-adapter-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-spring-webflux-adapter\1.7.1\sentinel-spring-webflux-adapter-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-spring-webmvc-adapter\1.7.1\sentinel-spring-webmvc-adapter-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-parameter-flow-control\1.7.1\sentinel-parameter-flow-control-1.7.1.jar;D:\work\maven\repository-ali\com\googlecode\concurrentlinkedhashmap\concurrentlinkedhashmap-lru\1.4.2\concurrentlinkedhashmap-lru-1.4.2.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-cluster-server-default\1.7.1\sentinel-cluster-server-default-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-cluster-common-default\1.7.1\sentinel-cluster-common-default-1.7.1.jar;D:\work\maven\repository-ali\io\netty\netty-handler\4.1.45.Final\netty-handler-4.1.45.Final.jar;D:\work\maven\repository-ali\io\netty\netty-common\4.1.45.Final\netty-common-4.1.45.Final.jar;D:\work\maven\repository-ali\io\netty\netty-buffer\4.1.45.Final\netty-buffer-4.1.45.Final.jar;D:\work\maven\repository-ali\io\netty\netty-transport\4.1.45.Final\netty-transport-4.1.45.Final.jar;D:\work\maven\repository-ali\io\netty\netty-resolver\4.1.45.Final\netty-resolver-4.1.45.Final.jar;D:\work\maven\repository-ali\io\netty\netty-codec\4.1.45.Final\netty-codec-4.1.45.Final.jar;D:\work\maven\repository-ali\com\alibaba\csp\sentinel-cluster-client-default\1.7.1\sentinel-cluster-client-default-1.7.1.jar;D:\work\maven\repository-ali\com\alibaba\cloud\spring-cloud-alibaba-sentinel-datasource\2.2.1.RELEASE\spring-cloud-alibaba-sentinel-datasource-2.2.1.RELEASE.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\dataformat\jackson-dataformat-xml\2.10.2\jackson-dataformat-xml-2.10.2.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\core\jackson-annotations\2.10.2\jackson-annotations-2.10.2.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\module\jackson-module-jaxb-annotations\2.10.2\jackson-module-jaxb-annotations-2.10.2.jar;D:\work\maven\repository-ali\jakarta\xml\bind\jakarta.xml.bind-api\2.3.2\jakarta.xml.bind-api-2.3.2.jar;D:\work\maven\repository-ali\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\work\maven\repository-ali\org\codehaus\woodstox\stax2-api\4.2\stax2-api-4.2.jar;D:\work\maven\repository-ali\com\fasterxml\woodstox\woodstox-core\6.0.3\woodstox-core-6.0.3.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-starter-openfeign\2.2.6.RELEASE\spring-cloud-starter-openfeign-2.2.6.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-starter\2.2.6.RELEASE\spring-cloud-starter-2.2.6.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;D:\work\maven\repository-ali\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;D:\work\maven\repository-ali\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-openfeign-core\2.2.6.RELEASE\spring-cloud-openfeign-core-2.2.6.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter-aop\2.2.5.RELEASE\spring-boot-starter-aop-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\work\maven\repository-ali\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\work\maven\repository-ali\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\work\maven\repository-ali\io\github\openfeign\feign-core\10.10.1\feign-core-10.10.1.jar;D:\work\maven\repository-ali\io\github\openfeign\feign-slf4j\10.10.1\feign-slf4j-10.10.1.jar;D:\work\maven\repository-ali\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;D:\work\maven\repository-ali\io\github\openfeign\feign-hystrix\10.10.1\feign-hystrix-10.10.1.jar;D:\work\maven\repository-ali\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.6.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.6.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.6.RELEASE\spring-cloud-netflix-ribbon-2.2.6.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.6.RELEASE\spring-cloud-netflix-archaius-2.2.6.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.6.RELEASE\spring-cloud-starter-netflix-archaius-2.2.6.RELEASE.jar;D:\work\maven\repository-ali\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\work\maven\repository-ali\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;D:\work\maven\repository-ali\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;D:\work\maven\repository-ali\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\work\maven\repository-ali\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\work\maven\repository-ali\javax\inject\javax.inject\1\javax.inject-1.jar;D:\work\maven\repository-ali\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\work\maven\repository-ali\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;D:\work\maven\repository-ali\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\work\maven\repository-ali\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;D:\work\maven\repository-ali\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\work\maven\repository-ali\org\apache\httpcomponents\httpclient\4.5.11\httpclient-4.5.11.jar;D:\work\maven\repository-ali\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;D:\work\maven\repository-ali\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\work\maven\repository-ali\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\work\maven\repository-ali\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\work\maven\repository-ali\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\work\maven\repository-ali\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:\work\maven\repository-ali\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:\work\maven\repository-ali\com\netflix\netflix-commons\netflix-commons-util\0.1.1\netflix-commons-util-0.1.1.jar;D:\work\maven\repository-ali\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;D:\work\maven\repository-ali\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\work\maven\repository-ali\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-starter-netflix-hystrix\2.2.2.RELEASE\spring-cloud-starter-netflix-hystrix-2.2.2.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\cloud\spring-cloud-netflix-hystrix\2.2.2.RELEASE\spring-cloud-netflix-hystrix-2.2.2.RELEASE.jar;D:\work\maven\repository-ali\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;D:\work\maven\repository-ali\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\work\maven\repository-ali\com\netflix\hystrix\hystrix-serialization\1.5.18\hystrix-serialization-1.5.18.jar;D:\work\maven\repository-ali\com\fasterxml\jackson\module\jackson-module-afterburner\2.10.2\jackson-module-afterburner-2.10.2.jar;D:\work\maven\repository-ali\com\netflix\hystrix\hystrix-metrics-event-stream\1.5.18\hystrix-metrics-event-stream-1.5.18.jar;D:\work\maven\repository-ali\com\netflix\hystrix\hystrix-javanica\1.5.18\hystrix-javanica-1.5.18.jar;D:\work\maven\repository-ali\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;D:\work\maven\repository-ali\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;D:\work\maven\repository-ali\io\reactivex\rxjava-reactive-streams\1.2.1\rxjava-reactive-streams-1.2.1.jar;D:\work\maven\repository-ali\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;D:\work\maven\repository-ali\com\alibaba\druid\1.1.20\druid-1.1.20.jar;D:\work\maven\repository-ali\mysql\mysql-connector-java\8.0.20\mysql-connector-java-8.0.20.jar;D:\work\maven\repository-ali\com\google\protobuf\protobuf-java\3.6.1\protobuf-java-3.6.1.jar;D:\work\maven\repository-ali\com\baomidou\mybatis-plus-boot-starter\3.4.2\mybatis-plus-boot-starter-3.4.2.jar;D:\work\maven\repository-ali\com\baomidou\mybatis-plus\3.4.2\mybatis-plus-3.4.2.jar;D:\work\maven\repository-ali\com\baomidou\mybatis-plus-extension\3.4.2\mybatis-plus-extension-3.4.2.jar;D:\work\maven\repository-ali\com\baomidou\mybatis-plus-core\3.4.2\mybatis-plus-core-3.4.2.jar;D:\work\maven\repository-ali\com\baomidou\mybatis-plus-annotation\3.4.2\mybatis-plus-annotation-3.4.2.jar;D:\work\maven\repository-ali\com\github\jsqlparser\jsqlparser\4.0\jsqlparser-4.0.jar;D:\work\maven\repository-ali\org\mybatis\mybatis\3.5.6\mybatis-3.5.6.jar;D:\work\maven\repository-ali\org\mybatis\mybatis-spring\2.0.5\mybatis-spring-2.0.5.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-autoconfigure\2.2.5.RELEASE\spring-boot-autoconfigure-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\boot\spring-boot-starter-jdbc\2.2.5.RELEASE\spring-boot-starter-jdbc-2.2.5.RELEASE.jar;D:\work\maven\repository-ali\com\zaxxer\HikariCP\3.4.2\HikariCP-3.4.2.jar;D:\work\maven\repository-ali\org\springframework\spring-jdbc\5.2.4.RELEASE\spring-jdbc-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\springframework\spring-tx\5.2.4.RELEASE\spring-tx-5.2.4.RELEASE.jar;D:\work\maven\repository-ali\org\projectlombok\lombok\1.16.18\lombok-1.16.18.jar" com.zrp.Launcher

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

2021-03-31 17:24:08.092  INFO 10920 --- [           main] com.zrp.Launcher                         : The following profiles are active: dev
2021-03-31 17:24:08.135  WARN 10920 --- [           main] o.s.c.c.u.SpringFactoryImportSelector    : More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration, org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration]
2021-03-31 17:24:08.641  INFO 10920 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=e645c3eb-3aa8-3327-bfb7-27db67f3d842
2021-03-31 17:24:08.782  INFO 10920 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-03-31 17:24:08.904  INFO 10920 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-03-31 17:24:09.074  INFO 10920 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-03-31 17:24:09.083  INFO 10920 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-03-31 17:24:09.083  INFO 10920 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.31]
2021-03-31 17:24:09.169  INFO 10920 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-03-31 17:24:09.169  INFO 10920 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 1059 ms
2021-03-31 17:24:09.279  WARN 10920 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2021-03-31 17:24:09.279  INFO 10920 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-03-31 17:24:09.282  WARN 10920 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2021-03-31 17:24:09.282  INFO 10920 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-03-31 17:24:09.423  INFO 10920 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-03-31 17:24:09.458  INFO 10920 --- [           main] c.a.c.s.SentinelWebAutoConfiguration     : [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
2021-03-31 17:24:10.284  INFO 10920 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'Nacso-Watch-Task-Scheduler'
2021-03-31 17:24:10.288  INFO 10920 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null
2021-03-31 17:24:10.289  INFO 10920 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Environment :null
2021-03-31 17:24:10.289  INFO 10920 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null
2021-03-31 17:24:11.166  WARN 10920 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMapper' defined in file [D:\work\Idea\workSpase\myself\zrp-dome\zrp-dome-mybatis\target\classes\com\zrp\dao\UserMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
2021-03-31 17:24:11.167  INFO 10920 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'
2021-03-31 17:24:11.180  WARN 10920 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2021-03-31 17:24:11.180  INFO 10920 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-03-31 17:24:11.183  INFO 10920 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2021-03-31 17:24:11.200  INFO 10920 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-31 17:24:11.208 ERROR 10920 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userMapper' defined in file [D:\work\Idea\workSpase\myself\zrp-dome\zrp-dome-mybatis\target\classes\com\zrp\dao\UserMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1796) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:860) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.5.RELEASE.jar:2.2.5.RELEASE]
	at com.zrp.Launcher.main(Launcher.java:30) [classes/:na]
Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
	at org.springframework.util.Assert.notNull(Assert.java:198) ~[spring-core-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig(SqlSessionDaoSupport.java:122) ~[mybatis-spring-2.0.5.jar:2.0.5]
	at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:73) ~[mybatis-spring-2.0.5.jar:2.0.5]
	at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) ~[spring-tx-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1792) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	... 16 common frames omitted


Process finished with exit code 1

启动类中也写@MapperScan

下面代码结构和jar

zrp-dome-mybatis-dev.yaml 

#---------固定配置------------------
# xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
mybatis-plus:
  mapper-locations: classpath:mybatis/*.xml
  type-aliases-package: com.zrp.po
 
#----------全局配置-----------------
spring:
  cloud:
    nacos:
      discovery:
       #nacos注册中心地址
        server-addr: 127.0.0.1:8848
        #开发环境(dev、pro等)     
        namespace:
        #组名
        group: DEFAULT_GROUP


#---------本工程专属配置-------------------       
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://127.0.0.1/pp-shop?serverTimezone=GMT%2B8&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
    username: root
    password: root
    druid:
      defaultAutoCommit: false
      defaultReadOnly: false
      initialSize: 2
      maxActive: 5
      minIdle: 2
      timeBetweenEvictionRunsMillis: 18000
      minEvictableIdleTimeMillis: 600000
      maxEvictableIdleTimeMillis: 1200000
      poolPreparedStatements: true
      maxOpenPreparedStatements: 100
      testOnBorrow: true
      testOnReturn: true
      testWhileIdle: true
      validationQuery: select 1
      removeAbandonedOnBorrow: true
      removeAbandoned: true
      removeAbandonedOnMaintenance: true
      removeAbandonedTimeout: 300
      maxWaitMillis: 3000
      keepalive: true
      phyMaxUseCount: 2000
      filters: stat,log4j2,config

bootstrap.yml

 

#端口
server:
  port: 8080
spring:
  profiles:
    active: dev                 #配置文件 --对应配置文件集合的 spring.profiles
  application:
    name: zrp-dome-mybatis      #服务名字
  main:
    allow-bean-definition-overriding: false  #解决bean重复定义,设为true,后面定义bean会覆盖相同名字之前定义的bean


#nacos中配置文件格式 ${spring.application.name} - ${spring.profiles.active} . ${file-extension}
#所以这个匹配的nacos是:zrp-dome-mybatis-dev.yaml
---
spring:
  profiles: dev
  cloud:
    nacos:
      config:
        server-addr: 127.0.0.1:8848       #nacos注册中心地址
        file-extension: yaml              #文件后缀
        group:                            # 组名
---
#所以这个匹配的nacos是:zrp-dome-mybatis-test.yaml
spring:
  profiles: test
  cloud:
    nacos:
      config:
        server-addr: zhaoruipeng.work     #nacos注册中心地址
        file-extension: yaml              #文件后缀
        group: DEFAULT_GROUP              # 组名
  • 写回答

4条回答 默认 最新

  • 封印di恶魔 2021-03-31 17:54
    关注

    这文章看看https://blog.csdn.net/qq_20210951/article/details/109309141

    还有你有没有加数据库配置

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 模拟电路求复阻抗和传递函数,请各位拍照写一下解答过程
  • ¥60 不懂得怎么运行下载来的代码
  • ¥15 CST导出3D模型图为什么和软件显示不一样?
  • ¥15 加热反应炉PLC控制系统设计(相关搜索:梯形图)
  • ¥15 python 用Dorc包报错,我的写法和网上教的是一样的但是它显示无效参数,是什么问题
  • ¥15 经过滑动平均后的一维信号还原用什么结构好呢?
  • ¥15 指定IP电脑的访问设置
  • ¥30 matlab ode45 未发现警告,但是运行出错
  • ¥15 为什么devc++编译项目会失败啊
  • ¥15 vscode platformio