在项目中添加pagehelper分页插件出现问题,如下:
添加依赖
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
项目启动报错
错误代码如下
E:\tools\jdk\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:54409,suspend=y,server=n -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:C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2020.1\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "E:\tools\jdk\jre\lib\charsets.jar;E:\tools\jdk\jre\lib\deploy.jar;E:\tools\jdk\jre\lib\ext\access-bridge-32.jar;E:\tools\jdk\jre\lib\ext\cldrdata.jar;E:\tools\jdk\jre\lib\ext\dnsns.jar;E:\tools\jdk\jre\lib\ext\jaccess.jar;E:\tools\jdk\jre\lib\ext\jfxrt.jar;E:\tools\jdk\jre\lib\ext\localedata.jar;E:\tools\jdk\jre\lib\ext\nashorn.jar;E:\tools\jdk\jre\lib\ext\sunec.jar;E:\tools\jdk\jre\lib\ext\sunjce_provider.jar;E:\tools\jdk\jre\lib\ext\sunmscapi.jar;E:\tools\jdk\jre\lib\ext\sunpkcs11.jar;E:\tools\jdk\jre\lib\ext\zipfs.jar;E:\tools\jdk\jre\lib\javaws.jar;E:\tools\jdk\jre\lib\jce.jar;E:\tools\jdk\jre\lib\jfr.jar;E:\tools\jdk\jre\lib\jfxswt.jar;E:\tools\jdk\jre\lib\jsse.jar;E:\tools\jdk\jre\lib\management-agent.jar;E:\tools\jdk\jre\lib\plugin.jar;E:\tools\jdk\jre\lib\resources.jar;E:\tools\jdk\jre\lib\rt.jar;H:\code\lc\code\ex-nrms-yunnan\ex-transfer-risk\target\classes;H:\code\lc\code\ex-nrms-yunnan\ex-common\target\classes;E:\tools\maven\repository\com\inspur\tiny\tiny-framework-core\1.0.0-RELEASE\tiny-framework-core-1.0.0-RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.3.RELEASE\spring-boot-starter-actuator-2.1.3.RELEASE.jar;E:\tools\maven\repository\io\micrometer\micrometer-core\1.1.3\micrometer-core-1.1.3.jar;E:\tools\maven\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\tools\maven\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.3.RELEASE\spring-boot-autoconfigure-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot\2.1.3.RELEASE\spring-boot-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.3.RELEASE\spring-boot-actuator-autoconfigure-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-actuator\2.1.3.RELEASE\spring-boot-actuator-2.1.3.RELEASE.jar;E:\tools\maven\repository\com\fasterxml\jackson\core\jackson-databind\2.9.8\jackson-databind-2.9.8.jar;E:\tools\maven\repository\org\springframework\spring-core\5.1.5.RELEASE\spring-core-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-jcl\5.1.5.RELEASE\spring-jcl-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-context\5.1.5.RELEASE\spring-context-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-beans\5.1.5.RELEASE\spring-beans-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-expression\5.1.5.RELEASE\spring-expression-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-aop\2.1.3.RELEASE\spring-boot-starter-aop-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-aop\5.1.5.RELEASE\spring-aop-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\aspectj\aspectjweaver\1.9.2\aspectjweaver-1.9.2.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-log4j2\2.1.3.RELEASE\spring-boot-starter-log4j2-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\apache\logging\log4j\log4j-slf4j-impl\2.17.1\log4j-slf4j-impl-2.17.1.jar;E:\tools\maven\repository\org\apache\logging\log4j\log4j-api\2.17.1\log4j-api-2.17.1.jar;E:\tools\maven\repository\org\apache\logging\log4j\log4j-core\2.17.1\log4j-core-2.17.1.jar;E:\tools\maven\repository\org\apache\logging\log4j\log4j-jul\2.17.1\log4j-jul-2.17.1.jar;E:\tools\maven\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-web\2.1.3.RELEASE\spring-boot-starter-web-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-json\2.1.3.RELEASE\spring-boot-starter-json-2.1.3.RELEASE.jar;E:\tools\maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.8\jackson-datatype-jdk8-2.9.8.jar;E:\tools\maven\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.8\jackson-module-parameter-names-2.9.8.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.3.RELEASE\spring-boot-starter-tomcat-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.16\tomcat-embed-core-9.0.16.jar;E:\tools\maven\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.16\tomcat-embed-el-9.0.16.jar;E:\tools\maven\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.16\tomcat-embed-websocket-9.0.16.jar;E:\tools\maven\repository\org\hibernate\validator\hibernate-validator\6.0.14.Final\hibernate-validator-6.0.14.Final.jar;E:\tools\maven\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;E:\tools\maven\repository\org\springframework\spring-web\5.1.5.RELEASE\spring-web-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-webmvc\5.1.5.RELEASE\spring-webmvc-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-cache\2.1.3.RELEASE\spring-boot-starter-cache-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-context-support\5.1.5.RELEASE\spring-context-support-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-configuration-processor\2.1.3.RELEASE\spring-boot-configuration-processor-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\zalando\problem-spring-web\0.24.0-RC.0\problem-spring-web-0.24.0-RC.0.jar;E:\tools\maven\repository\org\zalando\problem-violations\0.24.0-RC.0\problem-violations-0.24.0-RC.0.jar;E:\tools\maven\repository\org\zalando\problem-spring-common\0.24.0-RC.0\problem-spring-common-0.24.0-RC.0.jar;E:\tools\maven\repository\org\apiguardian\apiguardian-api\1.0.0\apiguardian-api-1.0.0.jar;E:\tools\maven\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;E:\tools\maven\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;E:\tools\maven\repository\org\zalando\problem\0.21.0\problem-0.21.0.jar;E:\tools\maven\repository\org\zalando\jackson-datatype-problem\0.21.0\jackson-datatype-problem-0.21.0.jar;E:\tools\maven\repository\org\zalando\faux-pas\0.8.0\faux-pas-0.8.0.jar;E:\tools\maven\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;E:\tools\maven\repository\io\jsonwebtoken\jjwt-api\0.10.5\jjwt-api-0.10.5.jar;E:\tools\maven\repository\io\jsonwebtoken\jjwt-impl\0.10.5\jjwt-impl-0.10.5.jar;E:\tools\maven\repository\io\jsonwebtoken\jjwt-jackson\0.10.5\jjwt-jackson-0.10.5.jar;E:\tools\maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-hppc\2.9.8\jackson-datatype-hppc-2.9.8.jar;E:\tools\maven\repository\com\carrotsearch\hppc\0.7.1\hppc-0.7.1.jar;E:\tools\maven\repository\com\fasterxml\jackson\core\jackson-core\2.9.8\jackson-core-2.9.8.jar;E:\tools\maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.8\jackson-datatype-jsr310-2.9.8.jar;E:\tools\maven\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;E:\tools\maven\repository\com\fasterxml\jackson\module\jackson-module-afterburner\2.9.8\jackson-module-afterburner-2.9.8.jar;E:\tools\maven\repository\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;E:\tools\maven\repository\io\swagger\swagger-annotations\1.5.20\swagger-annotations-1.5.20.jar;E:\tools\maven\repository\io\swagger\swagger-models\1.5.20\swagger-models-1.5.20.jar;E:\tools\maven\repository\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;E:\tools\maven\repository\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;E:\tools\maven\repository\net\bytebuddy\byte-buddy\1.9.10\byte-buddy-1.9.10.jar;E:\tools\maven\repository\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;E:\tools\maven\repository\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;E:\tools\maven\repository\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;E:\tools\maven\repository\com\google\guava\guava\20.0\guava-20.0.jar;E:\tools\maven\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;E:\tools\maven\repository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;E:\tools\maven\repository\org\mapstruct\mapstruct\1.2.0.Final\mapstruct-1.2.0.Final.jar;E:\tools\maven\repository\io\springfox\springfox-bean-validators\2.9.2\springfox-bean-validators-2.9.2.jar;E:\tools\maven\repository\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;E:\tools\maven\repository\org\apache\commons\commons-lang3\3.7\commons-lang3-3.7.jar;E:\tools\maven\repository\org\apache\kafka\kafka-clients\2.0.1\kafka-clients-2.0.1.jar;E:\tools\maven\repository\org\lz4\lz4-java\1.4.1\lz4-java-1.4.1.jar;E:\tools\maven\repository\org\xerial\snappy\snappy-java\1.1.7.1\snappy-java-1.1.7.1.jar;E:\tools\maven\repository\com\inspur\tiny\tiny-framework-cloud\1.1.0-SNAPSHOT\tiny-framework-cloud-1.1.0-20220125.082946-17.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter\2.1.0.RELEASE\spring-cloud-starter-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-context\2.1.0.RELEASE\spring-cloud-context-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\security\spring-security-crypto\5.1.4.RELEASE\spring-security-crypto-5.1.4.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-commons\2.1.0.RELEASE\spring-cloud-commons-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;E:\tools\maven\repository\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;E:\tools\maven\repository\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.1.0.RELEASE\spring-cloud-starter-netflix-ribbon-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.1.0.RELEASE\spring-cloud-netflix-ribbon-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.1.0.RELEASE\spring-cloud-netflix-archaius-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.1.0.RELEASE\spring-cloud-starter-netflix-archaius-2.1.0.RELEASE.jar;E:\tools\maven\repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\tools\maven\repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\tools\maven\repository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\tools\maven\repository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\tools\maven\repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\tools\maven\repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\tools\maven\repository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\tools\maven\repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\tools\maven\repository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\tools\maven\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\tools\maven\repository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\tools\maven\repository\org\apache\httpcomponents\httpclient\4.5.7\httpclient-4.5.7.jar;E:\tools\maven\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;E:\tools\maven\repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\tools\maven\repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\tools\maven\repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\tools\maven\repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\tools\maven\repository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;E:\tools\maven\repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;E:\tools\maven\repository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\tools\maven\repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\tools\maven\repository\io\reactivex\rxjava\1.2.0\rxjava-1.2.0.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter-netflix-hystrix\2.1.0.RELEASE\spring-cloud-starter-netflix-hystrix-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.1.0.RELEASE\spring-cloud-netflix-hystrix-2.1.0.RELEASE.jar;E:\tools\maven\repository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\tools\maven\repository\com\netflix\hystrix\hystrix-serialization\1.5.18\hystrix-serialization-1.5.18.jar;E:\tools\maven\repository\com\netflix\hystrix\hystrix-metrics-event-stream\1.5.18\hystrix-metrics-event-stream-1.5.18.jar;E:\tools\maven\repository\com\netflix\hystrix\hystrix-javanica\1.5.18\hystrix-javanica-1.5.18.jar;E:\tools\maven\repository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;E:\tools\maven\repository\io\reactivex\rxjava-reactive-streams\1.2.1\rxjava-reactive-streams-1.2.1.jar;E:\tools\maven\repository\org\reactivestreams\reactive-streams\1.0.2\reactive-streams-1.0.2.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter-consul-discovery\2.1.0.RELEASE\spring-cloud-starter-consul-discovery-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter-consul\2.1.0.RELEASE\spring-cloud-starter-consul-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-consul-core\2.1.0.RELEASE\spring-cloud-consul-core-2.1.0.RELEASE.jar;E:\tools\maven\repository\com\ecwid\consul\consul-api\1.4.1\consul-api-1.4.1.jar;E:\tools\maven\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;E:\tools\maven\repository\org\apache\httpcomponents\httpcore\4.4.11\httpcore-4.4.11.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-consul-discovery\2.1.0.RELEASE\spring-cloud-consul-discovery-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-netflix-core\2.1.0.RELEASE\spring-cloud-netflix-core-2.1.0.RELEASE.jar;E:\tools\maven\repository\joda-time\joda-time\2.10.1\joda-time-2.10.1.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter-openfeign\2.1.0.RELEASE\spring-cloud-starter-openfeign-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-openfeign-core\2.1.0.RELEASE\spring-cloud-openfeign-core-2.1.0.RELEASE.jar;E:\tools\maven\repository\io\github\openfeign\form\feign-form-spring\3.5.0\feign-form-spring-3.5.0.jar;E:\tools\maven\repository\io\github\openfeign\form\feign-form\3.5.0\feign-form-3.5.0.jar;E:\tools\maven\repository\commons-fileupload\commons-fileupload\1.3.3\commons-fileupload-1.3.3.jar;E:\tools\maven\repository\commons-io\commons-io\2.2\commons-io-2.2.jar;E:\tools\maven\repository\io\github\openfeign\feign-core\10.1.0\feign-core-10.1.0.jar;E:\tools\maven\repository\io\github\openfeign\feign-slf4j\10.1.0\feign-slf4j-10.1.0.jar;E:\tools\maven\repository\io\github\openfeign\feign-hystrix\10.1.0\feign-hystrix-10.1.0.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-starter-sleuth\2.1.0.RELEASE\spring-cloud-starter-sleuth-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\springframework\cloud\spring-cloud-sleuth-core\2.1.0.RELEASE\spring-cloud-sleuth-core-2.1.0.RELEASE.jar;E:\tools\maven\repository\org\aspectj\aspectjrt\1.9.2\aspectjrt-1.9.2.jar;E:\tools\maven\repository\io\zipkin\brave\brave\5.6.1\brave-5.6.1.jar;E:\tools\maven\repository\io\zipkin\zipkin2\zipkin\2.12.0\zipkin-2.12.0.jar;E:\tools\maven\repository\io\zipkin\reporter2\zipkin-reporter\2.7.14\zipkin-reporter-2.7.14.jar;E:\tools\maven\repository\io\zipkin\brave\brave-context-log4j2\5.6.1\brave-context-log4j2-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-spring-web\5.6.1\brave-instrumentation-spring-web-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-http\5.6.1\brave-instrumentation-http-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-spring-rabbit\5.6.1\brave-instrumentation-spring-rabbit-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-kafka-clients\5.6.1\brave-instrumentation-kafka-clients-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-httpclient\5.6.1\brave-instrumentation-httpclient-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-httpasyncclient\5.6.1\brave-instrumentation-httpasyncclient-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-spring-webmvc\5.6.1\brave-instrumentation-spring-webmvc-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-servlet\5.6.1\brave-instrumentation-servlet-5.6.1.jar;E:\tools\maven\repository\io\zipkin\brave\brave-instrumentation-jms\5.6.1\brave-instrumentation-jms-5.6.1.jar;E:\tools\maven\repository\com\inspur\tiny\tiny-framework-datasource\1.1.0-SNAPSHOT\tiny-framework-datasource-1.1.0-20220211.045156-17.jar;E:\tools\maven\repository\com\inspur\softwaregroup\communication\nrms-rsi-pluginbase\1.0-SNAPSHOT\nrms-rsi-pluginbase-1.0-20220420.014815-23.jar;E:\tools\maven\repository\com\inspur\softwaregroup\communication\nrms-authclient\1.0-SNAPSHOT\nrms-authclient-1.0-SNAPSHOT.jar;E:\tools\maven\repository\com\inspur\softwaregroup\communication\nrms-metacore\1.0-SNAPSHOT\nrms-metacore-1.0-SNAPSHOT.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-validation\2.1.3.RELEASE\spring-boot-starter-validation-2.1.3.RELEASE.jar;E:\tools\maven\repository\com\github\pagehelper\pagehelper-spring-boot-starter\1.2.5\pagehelper-spring-boot-starter-1.2.5.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter\2.1.3.RELEASE\spring-boot-starter-2.1.3.RELEASE.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-logging\2.1.3.RELEASE\spring-boot-starter-logging-2.1.3.RELEASE.jar;E:\tools\maven\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\tools\maven\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\tools\maven\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;E:\tools\maven\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;E:\tools\maven\repository\com\github\pagehelper\pagehelper-spring-boot-autoconfigure\1.2.5\pagehelper-spring-boot-autoconfigure-1.2.5.jar;E:\tools\maven\repository\com\github\pagehelper\pagehelper\5.1.7\pagehelper-5.1.7.jar;E:\tools\maven\repository\com\github\jsqlparser\jsqlparser\1.2\jsqlparser-1.2.jar;E:\tools\maven\repository\com\inspur\softwaregroup\communication\nrms-major-homecustomer-pluginbase\1.0-SNAPSHOT\nrms-major-homecustomer-pluginbase-1.0-20220416.092441-18.jar;E:\tools\maven\repository\commons-collections\commons-collections\3.2\commons-collections-3.2.jar;E:\tools\maven\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.2\mybatis-spring-boot-starter-1.3.2.jar;E:\tools\maven\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.3.RELEASE\spring-boot-starter-jdbc-2.1.3.RELEASE.jar;E:\tools\maven\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;E:\tools\maven\repository\org\springframework\spring-jdbc\5.1.5.RELEASE\spring-jdbc-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\springframework\spring-tx\5.1.5.RELEASE\spring-tx-5.1.5.RELEASE.jar;E:\tools\maven\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.2\mybatis-spring-boot-autoconfigure-1.3.2.jar;E:\tools\maven\repository\org\mybatis\mybatis\3.4.6\mybatis-3.4.6.jar;E:\tools\maven\repository\org\mybatis\mybatis-spring\1.3.2\mybatis-spring-1.3.2.jar;E:\tools\maven\repository\com\oracle\ojdbc6\11.2.0.3.0\ojdbc6-11.2.0.3.0.jar;E:\tools\maven\repository\com\alibaba\druid\1.1.10\druid-1.1.10.jar;E:\tools\maven\repository\com\alibaba\fastjson\1.2.47\fastjson-1.2.47.jar;E:\tools\maven\repository\com\inspur\softwaregroup\communication\nrms-flow-common\1.0-SNAPSHOT\nrms-flow-common-1.0-SNAPSHOT.jar;E:\tools\maven\repository\org\projectlombok\lombok\1.18.6\lombok-1.18.6.jar;E:\tools\IDE\IntelliJ IDEA 2020.1\lib\idea_rt.jar" com.inspur.softwaregroup.communication.nrms.transfer.risk.TransferRiskApplication
Connected to the target VM, address: '127.0.0.1:54409', transport: 'socket'
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/tools/maven/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.17.1/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/tools/maven/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger RollingFile contains an invalid element or attribute "EfkJsonPatternLayout"
ERROR StatusLogger RollingFile contains an invalid element or attribute "EfkJsonPatternLayout"
Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.apache.logging.slf4j.Log4jLoggerFactory loaded from file:/E:/tools/maven/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.17.1/log4j-slf4j-impl-2.17.1.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.apache.logging.slf4j.Log4jLoggerFactory
at org.springframework.util.Assert.instanceCheckFailed(Assert.java:655)
at org.springframework.util.Assert.isInstanceOf(Assert.java:555)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:286)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:102)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:220)
at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:199)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:69)
at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:48)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)
at com.inspur.softwaregroup.communication.nrms.transfer.risk.TransferRiskApplication.main(TransferRiskApplication.java:45)
Disconnected from the target VM, address: '127.0.0.1:54409', transport: 'socket'
Process finished with exit code 1
原因分析:
这个错误是因为pagehelper中的日志文件和项目中原有的日志文件冲突,这个可以检查IDE中maven中的依赖查看对比,如下:(我的这个是我已经排除了)
解决办法:
在添加的依赖下添加排除报错的日志依赖,我的报错是 org.apache.logging.slf4j.Log4jLoggerFactory
pom文件 操作:
<!-- 分页 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
<!--一下为报错日志的排除-->
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
以上是在工作中遇到的问题,花了很多时间解决,在此记录,方便共享使用
|