metaphysical-road / spring-cloud-alibaba-practice

Spring Cloud Alibaba微服务架构实战派,微服务架构最强实战案例分析
40 stars 18 forks source link

第十二章的shardingsphere-jdbc-use-spring-boot项目启动报错 #4

Open xiaoxunv opened 2 years ago

xiaoxunv commented 2 years ago

org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:138) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:123) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:666) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:353) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:300) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1082) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1071) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at com.alibaba.cloud.youxia.ShardingsphereSpringBootApplication.main(ShardingsphereSpringBootApplication.java:10) [classes/:na] Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:135) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:87) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:535) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:177) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:135) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] ... 8 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpPutFormContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:483) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:165) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:160) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:145) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:78) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getServletContextInitializerBeans(EmbeddedWebApplicationContext.java:240) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:214) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:91) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:205) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_161] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_161] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_161] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_161] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] ... 27 common frames omitted Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException at org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter.(AllEncompassingFormHttpMessageConverter.java:76) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.web.filter.HttpPutFormContentFilter.(HttpPutFormContentFilter.java:68) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter.(OrderedHttpPutFormContentFilter.java:29) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.httpPutFormContentFilter(WebMvcAutoConfiguration.java:148) ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$114c9d54.CGLIB$httpPutFormContentFilter$0() ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$114c9d54$$FastClassBySpringCGLIB$$c0d1fe97.invoke() ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$114c9d54.httpPutFormContentFilter() ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_161] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_161] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_161] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_161] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] ... 28 common frames omitted Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_161] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_161] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338) ~[na:1.8.0_161] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_161] ... 42 common frames omitted

Process finished with exit code 1

jackhuclan commented 2 years ago

"C:\Program Files\Java\jdk1.8.0_281\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56772,suspend=y,server=n -javaagent:C:\Users\george\AppData\Local\JetBrains\IdeaIC2022.2\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_281\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\rt.jar;D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-jdbc-use-spring-boot\target\classes;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-web\1.5.22.RELEASE\spring-boot-starter-web-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter\1.5.22.RELEASE\spring-boot-starter-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot\1.5.22.RELEASE\spring-boot-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-autoconfigure\1.5.22.RELEASE\spring-boot-autoconfigure-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\yaml\snakeyaml\1.17\snakeyaml-1.17.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\1.5.22.RELEASE\spring-boot-starter-tomcat-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.43\tomcat-embed-core-8.5.43.jar;C:\Users\george.m2\repository\org\apache\tomcat\tomcat-annotations-api\8.5.43\tomcat-annotations-api-8.5.43.jar;C:\Users\george.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.43\tomcat-embed-el-8.5.43.jar;C:\Users\george.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.43\tomcat-embed-websocket-8.5.43.jar;C:\Users\george.m2\repository\org\hibernate\hibernate-validator\5.3.6.Final\hibernate-validator-5.3.6.Final.jar;C:\Users\george.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\george.m2\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;C:\Users\george.m2\repository\com\fasterxml\classmate\1.3.1\classmate-1.3.1.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.8.11.3\jackson-databind-2.8.11.3.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.8.0\jackson-annotations-2.8.0.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\core\jackson-core\2.8.10\jackson-core-2.8.10.jar;C:\Users\george.m2\repository\org\springframework\spring-web\5.2.8.RELEASE\spring-web-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-beans\5.2.8.RELEASE\spring-beans-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-webmvc\5.2.8.RELEASE\spring-webmvc-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-aop\5.2.8.RELEASE\spring-aop-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-context\5.2.8.RELEASE\spring-context-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-expression\5.2.8.RELEASE\spring-expression-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-logging\1.5.22.RELEASE\spring-boot-starter-logging-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\ch\qos\logback\logback-classic\1.1.11\logback-classic-1.1.11.jar;C:\Users\george.m2\repository\ch\qos\logback\logback-core\1.1.11\logback-core-1.1.11.jar;C:\Users\george.m2\repository\org\slf4j\jcl-over-slf4j\1.7.26\jcl-over-slf4j-1.7.26.jar;C:\Users\george.m2\repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;C:\Users\george.m2\repository\org\slf4j\log4j-over-slf4j\1.7.26\log4j-over-slf4j-1.7.26.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-core-spring-boot-starter\5.0.0-alpha\shardingsphere-jdbc-core-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-spring-boot-starter\5.0.0-alpha\shardingsphere-sharding-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-common\5.0.0-alpha\shardingsphere-sharding-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-binder\5.0.0-alpha\shardingsphere-infra-binder-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-parser\5.0.0-alpha\shardingsphere-infra-parser-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-common\5.0.0-alpha\shardingsphere-infra-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-api\5.0.0-alpha\shardingsphere-sharding-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\codehaus\groovy\groovy\2.4.19\groovy-2.4.19-indy.jar;C:\Users\george.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-spring-boot-starter\5.0.0-alpha\shardingsphere-shadow-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-common\5.0.0-alpha\shardingsphere-shadow-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-api\5.0.0-alpha\shardingsphere-shadow-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-spring-boot-starter\5.0.0-alpha\shardingsphere-encrypt-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-common\5.0.0-alpha\shardingsphere-encrypt-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-api\5.0.0-alpha\shardingsphere-encrypt-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-spring-boot-starter\5.0.0-alpha\shardingsphere-replica-query-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-common\5.0.0-alpha\shardingsphere-replica-query-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-api\5.0.0-alpha\shardingsphere-replica-query-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-spring-boot-starter-infra\5.0.0-alpha\shardingsphere-jdbc-spring-boot-starter-infra-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-transaction-spring\5.0.0-alpha\shardingsphere-jdbc-transaction-spring-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-transaction-core\5.0.0-alpha\shardingsphere-transaction-core-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-executor\5.0.0-alpha\shardingsphere-infra-executor-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-core\5.0.0-alpha\shardingsphere-jdbc-core-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-sql92\5.0.0-alpha\shardingsphere-sql-parser-sql92-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-engine\5.0.0-alpha\shardingsphere-sql-parser-engine-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-spi\5.0.0-alpha\shardingsphere-sql-parser-spi-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-statement\5.0.0-alpha\shardingsphere-sql-parser-statement-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\commons\commons-collections4\4.2\commons-collections4-4.2.jar;C:\Users\george.m2\repository\org\antlr\antlr4-runtime\4.7.2\antlr4-runtime-4.7.2.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-mysql\5.0.0-alpha\shardingsphere-sql-parser-mysql-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-postgresql\5.0.0-alpha\shardingsphere-sql-parser-postgresql-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-oracle\5.0.0-alpha\shardingsphere-sql-parser-oracle-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-sqlserver\5.0.0-alpha\shardingsphere-sql-parser-sqlserver-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-context\5.0.0-alpha\shardingsphere-infra-context-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-distsql-parser-engine\5.0.0-alpha\shardingsphere-distsql-parser-engine-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-distsql-parser-statement\5.0.0-alpha\shardingsphere-distsql-parser-statement-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-route\5.0.0-alpha\shardingsphere-sharding-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-route\5.0.0-alpha\shardingsphere-infra-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-system-datetime\5.0.0-alpha\shardingsphere-system-datetime-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-datetime-spi\5.0.0-alpha\shardingsphere-infra-datetime-spi-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-route\5.0.0-alpha\shardingsphere-replica-query-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-rewrite\5.0.0-alpha\shardingsphere-sharding-rewrite-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-rewrite-engine\5.0.0-alpha\shardingsphere-infra-rewrite-engine-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-rewrite\5.0.0-alpha\shardingsphere-encrypt-rewrite-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-rewrite\5.0.0-alpha\shardingsphere-shadow-rewrite-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-route\5.0.0-alpha\shardingsphere-shadow-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-merge\5.0.0-alpha\shardingsphere-sharding-merge-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-merge\5.0.0-alpha\shardingsphere-infra-merge-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-merge\5.0.0-alpha\shardingsphere-encrypt-merge-5.0.0-alpha.jar;C:\Users\george.m2\repository\com\google\guava\guava\29.0-jre\guava-29.0-jre.jar;C:\Users\george.m2\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;C:\Users\george.m2\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;C:\Users\george.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\george.m2\repository\org\checkerframework\checker-qual\2.11.1\checker-qual-2.11.1.jar;C:\Users\george.m2\repository\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;C:\Users\george.m2\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;C:\Users\george.m2\repository\org\slf4j\slf4j-api\1.7.7\slf4j-api-1.7.7.jar;C:\Users\george.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.2\mybatis-spring-boot-starter-1.3.2.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.3.2.RELEASE\spring-boot-starter-jdbc-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;C:\Users\george.m2\repository\org\springframework\spring-jdbc\5.2.8.RELEASE\spring-jdbc-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-tx\5.2.8.RELEASE\spring-tx-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.2\mybatis-spring-boot-autoconfigure-1.3.2.jar;C:\Users\george.m2\repository\org\mybatis\mybatis\3.5.6\mybatis-3.5.6.jar;C:\Users\george.m2\repository\org\mybatis\mybatis-spring\2.0.5\mybatis-spring-2.0.5.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-test\1.5.22.RELEASE\spring-boot-starter-test-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-test\1.5.22.RELEASE\spring-boot-test-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\1.5.22.RELEASE\spring-boot-test-autoconfigure-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\com\jayway\jsonpath\json-path\2.2.0\json-path-2.2.0.jar;C:\Users\george.m2\repository\net\minidev\json-smart\2.2.1\json-smart-2.2.1.jar;C:\Users\george.m2\repository\net\minidev\accessors-smart\1.1\accessors-smart-1.1.jar;C:\Users\george.m2\repository\org\ow2\asm\asm\5.0.3\asm-5.0.3.jar;C:\Users\george.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\george.m2\repository\org\assertj\assertj-core\2.6.0\assertj-core-2.6.0.jar;C:\Users\george.m2\repository\org\mockito\mockito-core\1.10.19\mockito-core-1.10.19.jar;C:\Users\george.m2\repository\org\objenesis\objenesis\2.1\objenesis-2.1.jar;C:\Users\george.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\george.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\george.m2\repository\org\skyscreamer\jsonassert\1.4.0\jsonassert-1.4.0.jar;C:\Users\george.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\george.m2\repository\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-jcl\5.2.8.RELEASE\spring-jcl-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-test\4.3.25.RELEASE\spring-test-4.3.25.RELEASE.jar;D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-spring-boot-mybatis-plus\target\classes;C:\Users\george.m2\repository\org\projectlombok\lombok\1.18.22\lombok-1.18.22.jar;C:\Users\george.m2\repository\org\apache\commons\commons-lang3\3.8.1\commons-lang3-3.8.1.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-boot-starter\3.4.2\mybatis-plus-boot-starter-3.4.2.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus\3.4.2\mybatis-plus-3.4.2.jar;D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-core-api\target\classes;C:\Users\george.m2\repository\com\alibaba\youxia\dubbo-common-api\1.0.0.release\dubbo-common-api-1.0.0.release.jar;C:\Users\george.m2\repository\mysql\mysql-connector-java\8.0.16\mysql-connector-java-8.0.16.jar;C:\Users\george.m2\repository\com\google\protobuf\protobuf-java\3.6.1\protobuf-java-3.6.1.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-extension\3.4.2\mybatis-plus-extension-3.4.2.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-core\3.4.2\mybatis-plus-core-3.4.2.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-annotation\3.4.2\mybatis-plus-annotation-3.4.2.jar;C:\Users\george.m2\repository\com\github\jsqlparser\jsqlparser\4.0\jsqlparser-4.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.1.3\lib\idea_rt.jar" com.alibaba.cloud.youxia.ShardingsphereSpringBootApplication Connected to the target VM, address: '127.0.0.1:56772', transport: 'socket'

. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v1.5.22.RELEASE)

2022-10-06 09:08:10.587 INFO 14744 --- [ main] .c.y.ShardingsphereSpringBootApplication : Starting ShardingsphereSpringBootApplication on DESKTOP-2DEN9TK with PID 14744 (D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-jdbc-use-spring-boot\target\classes started by george in D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve) 2022-10-06 09:08:10.591 INFO 14744 --- [ main] .c.y.ShardingsphereSpringBootApplication : The following profiles are active: sharding-databases 2022-10-06 09:08:11.939 WARN 14744 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'addressMapper' and 'com.alibaba.cloud.youxia.mapper.AddressMapper' mapperInterface. Bean already defined with the same name! 2022-10-06 09:08:11.939 WARN 14744 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'orderItemMapper' and 'com.alibaba.cloud.youxia.mapper.OrderItemMapper' mapperInterface. Bean already defined with the same name! 2022-10-06 09:08:11.940 WARN 14744 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'orderMapper' and 'com.alibaba.cloud.youxia.mapper.OrderMapper' mapperInterface. Bean already defined with the same name! 2022-10-06 09:08:11.940 WARN 14744 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.alibaba.cloud.youxia.mapper]' package. Please check your configuration. 2022-10-06 09:08:12.415 INFO 14744 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'stringToNoneShardingStrategyConfigurationConverter' of type [org.apache.shardingsphere.spring.boot.converter.StringToNoneShardingStrategyConfigurationConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-06 09:08:12.427 INFO 14744 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.shardingsphere-org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration' of type [org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-06 09:08:12.846 INFO 14744 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.apache.shardingsphere.spring.boot.SpringBootConfiguration' of type [org.apache.shardingsphere.spring.boot.SpringBootConfiguration$$EnhancerBySpringCGLIB$$3c3e51f0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-06 09:08:13.784 INFO 14744 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 34998 (http) 2022-10-06 09:08:13.824 INFO 14744 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2022-10-06 09:08:13.824 INFO 14744 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.43 2022-10-06 09:08:14.147 INFO 14744 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2022-10-06 09:08:14.148 INFO 14744 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3153 ms 2022-10-06 09:08:14.241 ERROR 14744 --- [ost-startStop-1] o.s.b.c.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'httpPutFormContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException 2022-10-06 09:08:14.273 INFO 14744 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2022-10-06 09:08:14.280 WARN 14744 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat 2022-10-06 09:08:14.291 INFO 14744 --- [ main] utoConfigurationReportLoggingInitializer :

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2022-10-06 09:08:14.298 ERROR 14744 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:138) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:123) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:666) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:353) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:300) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1082) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1071) [spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at com.alibaba.cloud.youxia.ShardingsphereSpringBootApplication.main(ShardingsphereSpringBootApplication.java:10) [classes/:na] Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:135) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:87) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:535) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:177) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:135) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] ... 8 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpPutFormContentFilter' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:483) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:212) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:165) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:160) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:145) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:78) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getServletContextInitializerBeans(EmbeddedWebApplicationContext.java:240) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:214) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:91) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:205) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) ~[tomcat-embed-core-8.5.43.jar:8.5.43] at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) ~[na:1.8.0_281] at java.util.concurrent.FutureTask.run(FutureTask.java) ~[na:1.8.0_281] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_281] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_281] at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_281] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter]: Factory method 'httpPutFormContentFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] ... 28 common frames omitted Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException at org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter.(AllEncompassingFormHttpMessageConverter.java:76) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.web.filter.HttpPutFormContentFilter.(HttpPutFormContentFilter.java:68) ~[spring-web-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.web.filter.OrderedHttpPutFormContentFilter.(OrderedHttpPutFormContentFilter.java:29) ~[spring-boot-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.httpPutFormContentFilter(WebMvcAutoConfiguration.java:148) ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$936b71b6.CGLIB$httpPutFormContentFilter$1() ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$936b71b6$$FastClassBySpringCGLIB$$6d01d312.invoke() ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.8.RELEASE.jar:5.2.8.RELEASE] at org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$$EnhancerBySpringCGLIB$$936b71b6.httpPutFormContentFilter() ~[spring-boot-autoconfigure-1.5.22.RELEASE.jar:1.5.22.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_281] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_281] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_281] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_281] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE] ... 29 common frames omitted Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_281] at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_281] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) ~[na:1.8.0_281] at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_281] ... 43 common frames omitted

Disconnected from the target VM, address: '127.0.0.1:56772', transport: 'socket'

Process finished with exit code 1

jackhuclan commented 2 years ago

spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_databaseinline.props.algorithm-expression=datasource${order_id % 3}

"C:\Program Files\Java\jdk1.8.0_281\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:60276,suspend=y,server=n -javaagent:C:\Users\george\AppData\Local\JetBrains\IdeaIC2022.2\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_281\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_281\jre\lib\rt.jar;D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-jdbc-use-spring-boot\target\classes;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-web\2.3.2.RELEASE\spring-boot-starter-web-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter\2.3.2.RELEASE\spring-boot-starter-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot\2.3.2.RELEASE\spring-boot-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.3.2.RELEASE\spring-boot-autoconfigure-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\george.m2\repository\org\yaml\snakeyaml\1.26\snakeyaml-1.26.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-json\2.3.2.RELEASE\spring-boot-starter-json-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.11.1\jackson-databind-2.11.1.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.1\jackson-annotations-2.11.1.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\core\jackson-core\2.11.1\jackson-core-2.11.1.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.1\jackson-datatype-jdk8-2.11.1.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.1\jackson-datatype-jsr310-2.11.1.jar;C:\Users\george.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.1\jackson-module-parameter-names-2.11.1.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.3.2.RELEASE\spring-boot-starter-tomcat-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.37\tomcat-embed-core-9.0.37.jar;C:\Users\george.m2\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;C:\Users\george.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.37\tomcat-embed-websocket-9.0.37.jar;C:\Users\george.m2\repository\org\springframework\spring-web\5.2.8.RELEASE\spring-web-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-beans\5.2.8.RELEASE\spring-beans-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-webmvc\5.2.8.RELEASE\spring-webmvc-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-aop\5.2.8.RELEASE\spring-aop-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-context\5.2.8.RELEASE\spring-context-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-expression\5.2.8.RELEASE\spring-expression-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.3.2.RELEASE\spring-boot-starter-logging-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\george.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\george.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;C:\Users\george.m2\repository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;C:\Users\george.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-core-spring-boot-starter\5.0.0-alpha\shardingsphere-jdbc-core-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-spring-boot-starter\5.0.0-alpha\shardingsphere-sharding-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-common\5.0.0-alpha\shardingsphere-sharding-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-binder\5.0.0-alpha\shardingsphere-infra-binder-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-parser\5.0.0-alpha\shardingsphere-infra-parser-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-common\5.0.0-alpha\shardingsphere-infra-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-api\5.0.0-alpha\shardingsphere-sharding-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\codehaus\groovy\groovy\2.4.19\groovy-2.4.19-indy.jar;C:\Users\george.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-spring-boot-starter\5.0.0-alpha\shardingsphere-shadow-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-common\5.0.0-alpha\shardingsphere-shadow-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-api\5.0.0-alpha\shardingsphere-shadow-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-spring-boot-starter\5.0.0-alpha\shardingsphere-encrypt-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-common\5.0.0-alpha\shardingsphere-encrypt-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-api\5.0.0-alpha\shardingsphere-encrypt-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-spring-boot-starter\5.0.0-alpha\shardingsphere-replica-query-spring-boot-starter-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-common\5.0.0-alpha\shardingsphere-replica-query-common-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-api\5.0.0-alpha\shardingsphere-replica-query-api-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-spring-boot-starter-infra\5.0.0-alpha\shardingsphere-jdbc-spring-boot-starter-infra-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-transaction-spring\5.0.0-alpha\shardingsphere-jdbc-transaction-spring-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-transaction-core\5.0.0-alpha\shardingsphere-transaction-core-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-executor\5.0.0-alpha\shardingsphere-infra-executor-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-jdbc-core\5.0.0-alpha\shardingsphere-jdbc-core-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-sql92\5.0.0-alpha\shardingsphere-sql-parser-sql92-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-engine\5.0.0-alpha\shardingsphere-sql-parser-engine-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-spi\5.0.0-alpha\shardingsphere-sql-parser-spi-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-statement\5.0.0-alpha\shardingsphere-sql-parser-statement-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\commons\commons-collections4\4.2\commons-collections4-4.2.jar;C:\Users\george.m2\repository\org\antlr\antlr4-runtime\4.7.2\antlr4-runtime-4.7.2.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-mysql\5.0.0-alpha\shardingsphere-sql-parser-mysql-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-postgresql\5.0.0-alpha\shardingsphere-sql-parser-postgresql-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-oracle\5.0.0-alpha\shardingsphere-sql-parser-oracle-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sql-parser-sqlserver\5.0.0-alpha\shardingsphere-sql-parser-sqlserver-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-context\5.0.0-alpha\shardingsphere-infra-context-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-distsql-parser-engine\5.0.0-alpha\shardingsphere-distsql-parser-engine-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-distsql-parser-statement\5.0.0-alpha\shardingsphere-distsql-parser-statement-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-route\5.0.0-alpha\shardingsphere-sharding-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-route\5.0.0-alpha\shardingsphere-infra-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-system-datetime\5.0.0-alpha\shardingsphere-system-datetime-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-datetime-spi\5.0.0-alpha\shardingsphere-infra-datetime-spi-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-replica-query-route\5.0.0-alpha\shardingsphere-replica-query-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-rewrite\5.0.0-alpha\shardingsphere-sharding-rewrite-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-rewrite-engine\5.0.0-alpha\shardingsphere-infra-rewrite-engine-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-rewrite\5.0.0-alpha\shardingsphere-encrypt-rewrite-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-rewrite\5.0.0-alpha\shardingsphere-shadow-rewrite-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-shadow-route\5.0.0-alpha\shardingsphere-shadow-route-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-sharding-merge\5.0.0-alpha\shardingsphere-sharding-merge-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-infra-merge\5.0.0-alpha\shardingsphere-infra-merge-5.0.0-alpha.jar;C:\Users\george.m2\repository\org\apache\shardingsphere\shardingsphere-encrypt-merge\5.0.0-alpha\shardingsphere-encrypt-merge-5.0.0-alpha.jar;C:\Users\george.m2\repository\com\google\guava\guava\29.0-jre\guava-29.0-jre.jar;C:\Users\george.m2\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;C:\Users\george.m2\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;C:\Users\george.m2\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;C:\Users\george.m2\repository\org\checkerframework\checker-qual\2.11.1\checker-qual-2.11.1.jar;C:\Users\george.m2\repository\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;C:\Users\george.m2\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;C:\Users\george.m2\repository\org\slf4j\slf4j-api\1.7.7\slf4j-api-1.7.7.jar;C:\Users\george.m2\repository\org\slf4j\jcl-over-slf4j\1.7.7\jcl-over-slf4j-1.7.7.jar;C:\Users\george.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.2\mybatis-spring-boot-starter-1.3.2.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.3.2.RELEASE\spring-boot-starter-jdbc-2.3.2.RELEASE.jar;C:\Users\george.m2\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;C:\Users\george.m2\repository\org\springframework\spring-jdbc\5.2.8.RELEASE\spring-jdbc-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-tx\5.2.8.RELEASE\spring-tx-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.2\mybatis-spring-boot-autoconfigure-1.3.2.jar;C:\Users\george.m2\repository\org\mybatis\mybatis\3.5.6\mybatis-3.5.6.jar;C:\Users\george.m2\repository\org\mybatis\mybatis-spring\2.0.5\mybatis-spring-2.0.5.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-starter-test\1.5.22.RELEASE\spring-boot-starter-test-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-test\1.5.22.RELEASE\spring-boot-test-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\boot\spring-boot-test-autoconfigure\1.5.22.RELEASE\spring-boot-test-autoconfigure-1.5.22.RELEASE.jar;C:\Users\george.m2\repository\com\jayway\jsonpath\json-path\2.2.0\json-path-2.2.0.jar;C:\Users\george.m2\repository\net\minidev\json-smart\2.2.1\json-smart-2.2.1.jar;C:\Users\george.m2\repository\net\minidev\accessors-smart\1.1\accessors-smart-1.1.jar;C:\Users\george.m2\repository\org\ow2\asm\asm\5.0.3\asm-5.0.3.jar;C:\Users\george.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\george.m2\repository\org\assertj\assertj-core\2.6.0\assertj-core-2.6.0.jar;C:\Users\george.m2\repository\org\mockito\mockito-core\1.10.19\mockito-core-1.10.19.jar;C:\Users\george.m2\repository\org\objenesis\objenesis\2.1\objenesis-2.1.jar;C:\Users\george.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\Users\george.m2\repository\org\hamcrest\hamcrest-library\1.3\hamcrest-library-1.3.jar;C:\Users\george.m2\repository\org\skyscreamer\jsonassert\1.4.0\jsonassert-1.4.0.jar;C:\Users\george.m2\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;C:\Users\george.m2\repository\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-jcl\5.2.8.RELEASE\spring-jcl-5.2.8.RELEASE.jar;C:\Users\george.m2\repository\org\springframework\spring-test\4.3.25.RELEASE\spring-test-4.3.25.RELEASE.jar;D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-spring-boot-mybatis-plus\target\classes;C:\Users\george.m2\repository\org\projectlombok\lombok\1.18.22\lombok-1.18.22.jar;C:\Users\george.m2\repository\org\apache\commons\commons-lang3\3.8.1\commons-lang3-3.8.1.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-boot-starter\3.4.2\mybatis-plus-boot-starter-3.4.2.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus\3.4.2\mybatis-plus-3.4.2.jar;D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-core-api\target\classes;C:\Users\george.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\george.m2\repository\com\alibaba\youxia\dubbo-common-api\1.0.0.release\dubbo-common-api-1.0.0.release.jar;C:\Users\george.m2\repository\mysql\mysql-connector-java\8.0.16\mysql-connector-java-8.0.16.jar;C:\Users\george.m2\repository\com\google\protobuf\protobuf-java\3.6.1\protobuf-java-3.6.1.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-extension\3.4.2\mybatis-plus-extension-3.4.2.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-core\3.4.2\mybatis-plus-core-3.4.2.jar;C:\Users\george.m2\repository\com\baomidou\mybatis-plus-annotation\3.4.2\mybatis-plus-annotation-3.4.2.jar;C:\Users\george.m2\repository\com\github\jsqlparser\jsqlparser\4.0\jsqlparser-4.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.1.3\lib\idea_rt.jar" com.alibaba.cloud.youxia.ShardingsphereSpringBootApplication Connected to the target VM, address: '127.0.0.1:60276', transport: 'socket'

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

2022-10-06 10:00:19.124 INFO 9068 --- [ main] .c.y.ShardingsphereSpringBootApplication : Starting ShardingsphereSpringBootApplication on DESKTOP-2DEN9TK with PID 9068 (D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve\shardingsphere-jdbc-use-spring-boot\target\classes started by george in D:\javastudy\alibaba\spring-cloud-alibaba-practice-master\chaptertwelve) 2022-10-06 10:00:19.128 INFO 9068 --- [ main] .c.y.ShardingsphereSpringBootApplication : The following profiles are active: sharding-databases 2022-10-06 10:00:20.305 WARN 9068 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'addressMapper' and 'com.alibaba.cloud.youxia.mapper.AddressMapper' mapperInterface. Bean already defined with the same name! 2022-10-06 10:00:20.306 WARN 9068 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'orderItemMapper' and 'com.alibaba.cloud.youxia.mapper.OrderItemMapper' mapperInterface. Bean already defined with the same name! 2022-10-06 10:00:20.306 WARN 9068 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'orderMapper' and 'com.alibaba.cloud.youxia.mapper.OrderMapper' mapperInterface. Bean already defined with the same name! 2022-10-06 10:00:20.306 WARN 9068 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.alibaba.cloud.youxia.mapper]' package. Please check your configuration. 2022-10-06 10:00:20.321 ERROR 9068 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Configuration property name 'spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_database_inline.props' is not valid:

Invalid characters: '_', '_', '_'
Reason: Canonical names should be kebab-case ('-' separated), lowercase alpha-numeric characters and must start with a letter

Action:

Modify 'spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_database_inline.props' so that it conforms to the canonical names requirements.

Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:147) at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:821) at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) at com.alibaba.cloud.youxia.ShardingsphereSpringBootApplication.main(ShardingsphereSpringBootApplication.java:10) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.shardingsphere.spring.boot.util.PropertyUtil.v2(PropertyUtil.java:109) at org.apache.shardingsphere.spring.boot.util.PropertyUtil.handle(PropertyUtil.java:75) at org.apache.shardingsphere.spring.boot.registry.AbstractAlgorithmProvidedBeanRegistry.lambda$registerBean$1(AbstractAlgorithmProvidedBeanRegistry.java:57) at java.lang.Iterable.forEach(Iterable.java:75) at org.apache.shardingsphere.spring.boot.registry.AbstractAlgorithmProvidedBeanRegistry.registerBean(AbstractAlgorithmProvidedBeanRegistry.java:55) at org.apache.shardingsphere.sharding.spring.boot.algorithm.ShardingAlgorithmProvidedBeanRegistry.postProcessBeanDefinitionRegistry(ShardingAlgorithmProvidedBeanRegistry.java:38) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:126) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:707) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ... 3 more Caused by: org.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException: Configuration property name 'spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_database_inline.props' is not valid at org.springframework.boot.context.properties.source.ConfigurationPropertyName.elementsOf(ConfigurationPropertyName.java:565) at org.springframework.boot.context.properties.source.ConfigurationPropertyName.elementsOf(ConfigurationPropertyName.java:542) at org.springframework.boot.context.properties.source.ConfigurationPropertyName.of(ConfigurationPropertyName.java:533) at org.springframework.boot.context.properties.source.ConfigurationPropertyName.of(ConfigurationPropertyName.java:510) at org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:199) at org.springframework.boot.context.properties.bind.Binder.bind(Binder.java:186) ... 22 more Disconnected from the target VM, address: '127.0.0.1:60276', transport: 'socket'

Process finished with exit code 1

jackhuclan commented 2 years ago

shardingsphere用5.0.0-alpha, 5.2.0,都是有问题的,希望老师能看看

xiaoxunv commented 2 years ago

没理解什么意思,还烦请胡老师再说详细一点,问题具体原因出在哪里

metaphysical-road commented 2 years ago

没理解什么意思,还烦请胡老师再说详细一点,问题具体原因出在哪里

好的,我看看具体问题和环境