当前位置: 首页 > 工具软件 > Ada Util > 使用案例 >

java.util.NoSuchElementException: No value bound启动报错

孙项禹
2023-12-01
D:\Tool\JDK\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=53920 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\solf\IdeaIU_2018\lib\idea_rt.jar=53921:D:\solf\IdeaIU_2018\bin -Dfile.encoding=UTF-8 -classpath D:\Tool\JDK\jre\lib\charsets.jar;D:\Tool\JDK\jre\lib\deploy.jar;D:\Tool\JDK\jre\lib\ext\access-bridge-64.jar;D:\Tool\JDK\jre\lib\ext\cldrdata.jar;D:\Tool\JDK\jre\lib\ext\dnsns.jar;D:\Tool\JDK\jre\lib\ext\jaccess.jar;D:\Tool\JDK\jre\lib\ext\jfxrt.jar;D:\Tool\JDK\jre\lib\ext\localedata.jar;D:\Tool\JDK\jre\lib\ext\nashorn.jar;D:\Tool\JDK\jre\lib\ext\sunec.jar;D:\Tool\JDK\jre\lib\ext\sunjce_provider.jar;D:\Tool\JDK\jre\lib\ext\sunmscapi.jar;D:\Tool\JDK\jre\lib\ext\sunpkcs11.jar;D:\Tool\JDK\jre\lib\ext\zipfs.jar;D:\Tool\JDK\jre\lib\javaws.jar;D:\Tool\JDK\jre\lib\jce.jar;D:\Tool\JDK\jre\lib\jfr.jar;D:\Tool\JDK\jre\lib\jfxswt.jar;D:\Tool\JDK\jre\lib\jsse.jar;D:\Tool\JDK\jre\lib\management-agent.jar;D:\Tool\JDK\jre\lib\plugin.jar;D:\Tool\JDK\jre\lib\resources.jar;D:\Tool\JDK\jre\lib\rt.jar;D:\java\IdeaSpace\04youpingou-web-parent\04youpingou-web-service\target\classes;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-starter\2.0.1.RELEASE\spring-boot-starter-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot\2.0.1.RELEASE\spring-boot-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-starter-logging\2.0.1.RELEASE\spring-boot-starter-logging-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\Tool\MavenTool\yycg_repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\Tool\MavenTool\yycg_repository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;D:\Tool\MavenTool\yycg_repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;D:\Tool\MavenTool\yycg_repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\Tool\MavenTool\yycg_repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\Tool\MavenTool\yycg_repository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-core\5.0.5.RELEASE\spring-core-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-jcl\5.0.5.RELEASE\spring-jcl-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-starter-web\2.0.1.RELEASE\spring-boot-starter-web-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-starter-json\2.0.1.RELEASE\spring-boot-starter-json-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\com\fasterxml\jackson\core\jackson-databind\2.9.3\jackson-databind-2.9.3.jar;D:\Tool\MavenTool\yycg_repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.3\jackson-datatype-jdk8-2.9.3.jar;D:\Tool\MavenTool\yycg_repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.3\jackson-datatype-jsr310-2.9.3.jar;D:\Tool\MavenTool\yycg_repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.3\jackson-module-parameter-names-2.9.3.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-starter-tomcat\2.0.1.RELEASE\spring-boot-starter-tomcat-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\apache\tomcat\embed\tomcat-embed-core\8.5.29\tomcat-embed-core-8.5.29.jar;D:\Tool\MavenTool\yycg_repository\org\apache\tomcat\embed\tomcat-embed-el\8.5.29\tomcat-embed-el-8.5.29.jar;D:\Tool\MavenTool\yycg_repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.29\tomcat-embed-websocket-8.5.29.jar;D:\Tool\MavenTool\yycg_repository\org\hibernate\validator\hibernate-validator\6.0.9.Final\hibernate-validator-6.0.9.Final.jar;D:\Tool\MavenTool\yycg_repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\Tool\MavenTool\yycg_repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;D:\Tool\MavenTool\yycg_repository\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-web\5.0.5.RELEASE\spring-web-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-beans\5.0.5.RELEASE\spring-beans-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-webmvc\5.0.5.RELEASE\spring-webmvc-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-aop\5.0.5.RELEASE\spring-aop-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-context\5.0.5.RELEASE\spring-context-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-expression\5.0.5.RELEASE\spring-expression-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.0.0.RC1\spring-cloud-starter-netflix-eureka-client-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-starter\2.0.0.RC1\spring-cloud-starter-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-context\2.0.0.RC1\spring-cloud-context-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\security\spring-security-crypto\5.0.4.RELEASE\spring-security-crypto-5.0.4.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-commons\2.0.0.RC1\spring-cloud-commons-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\security\spring-security-rsa\1.0.5.RELEASE\spring-security-rsa-1.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\bouncycastle\bcpkix-jdk15on\1.56\bcpkix-jdk15on-1.56.jar;D:\Tool\MavenTool\yycg_repository\org\bouncycastle\bcprov-jdk15on\1.56\bcprov-jdk15on-1.56.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-netflix-core\2.0.0.RC1\spring-cloud-netflix-core-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-starter-aop\2.0.1.RELEASE\spring-boot-starter-aop-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.0.0.RC1\spring-cloud-netflix-eureka-client-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\eureka\eureka-client\1.8.8\eureka-client-1.8.8.jar;D:\Tool\MavenTool\yycg_repository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\Tool\MavenTool\yycg_repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\Tool\MavenTool\yycg_repository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\Tool\MavenTool\yycg_repository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;D:\Tool\MavenTool\yycg_repository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\Tool\MavenTool\yycg_repository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\Tool\MavenTool\yycg_repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\Tool\MavenTool\yycg_repository\com\google\code\gson\gson\2.8.2\gson-2.8.2.jar;D:\Tool\MavenTool\yycg_repository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\Tool\MavenTool\yycg_repository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\Tool\MavenTool\yycg_repository\com\google\guava\guava\16.0\guava-16.0.jar;D:\Tool\MavenTool\yycg_repository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\servo\servo-core\0.10.1\servo-core-0.10.1.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\servo\servo-internal\0.10.1\servo-internal-0.10.1.jar;D:\Tool\MavenTool\yycg_repository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\Tool\MavenTool\yycg_repository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\Tool\MavenTool\yycg_repository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\Tool\MavenTool\yycg_repository\org\apache\httpcomponents\httpclient\4.5.5\httpclient-4.5.5.jar;D:\Tool\MavenTool\yycg_repository\org\apache\httpcomponents\httpcore\4.4.9\httpcore-4.4.9.jar;D:\Tool\MavenTool\yycg_repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\Tool\MavenTool\yycg_repository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\Tool\MavenTool\yycg_repository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\Tool\MavenTool\yycg_repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\Tool\MavenTool\yycg_repository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;D:\Tool\MavenTool\yycg_repository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;D:\Tool\MavenTool\yycg_repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\Tool\MavenTool\yycg_repository\com\fasterxml\jackson\core\jackson-core\2.9.3\jackson-core-2.9.3.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\eureka\eureka-core\1.8.8\eureka-core-1.8.8.jar;D:\Tool\MavenTool\yycg_repository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\Tool\MavenTool\yycg_repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\Tool\MavenTool\yycg_repository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.0.0.RC1\spring-cloud-starter-netflix-archaius-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.0.0.RC1\spring-cloud-netflix-ribbon-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-netflix-archaius\2.0.0.RC1\spring-cloud-netflix-archaius-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.0.0.RC1\spring-cloud-starter-netflix-ribbon-2.0.0.RC1.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\ribbon\ribbon\2.2.5\ribbon-2.2.5.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\ribbon\ribbon-transport\2.2.5\ribbon-transport-2.2.5.jar;D:\Tool\MavenTool\yycg_repository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\Tool\MavenTool\yycg_repository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\hystrix\hystrix-core\1.5.12\hystrix-core-1.5.12.jar;D:\Tool\MavenTool\yycg_repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\Tool\MavenTool\yycg_repository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-codec-http\4.1.23.Final\netty-codec-http-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-codec\4.1.23.Final\netty-codec-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-transport-native-epoll\4.1.23.Final\netty-transport-native-epoll-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-common\4.1.23.Final\netty-common-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-buffer\4.1.23.Final\netty-buffer-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-transport-native-unix-common\4.1.23.Final\netty-transport-native-unix-common-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-transport\4.1.23.Final\netty-transport-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\io\netty\netty-resolver\4.1.23.Final\netty-resolver-4.1.23.Final.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\ribbon\ribbon-core\2.2.5\ribbon-core-2.2.5.jar;D:\Tool\MavenTool\yycg_repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\ribbon\ribbon-httpclient\2.2.5\ribbon-httpclient-2.2.5.jar;D:\Tool\MavenTool\yycg_repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\ribbon\ribbon-loadbalancer\2.2.5\ribbon-loadbalancer-2.2.5.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\Tool\MavenTool\yycg_repository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\Tool\MavenTool\yycg_repository\com\netflix\ribbon\ribbon-eureka\2.2.5\ribbon-eureka-2.2.5.jar;D:\Tool\MavenTool\yycg_repository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;D:\Tool\MavenTool\yycg_repository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\Tool\MavenTool\yycg_repository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\Tool\MavenTool\yycg_repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.2\mybatis-spring-boot-starter-1.3.2.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-starter-jdbc\2.0.1.RELEASE\spring-boot-starter-jdbc-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\com\zaxxer\HikariCP\2.7.8\HikariCP-2.7.8.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-jdbc\5.0.5.RELEASE\spring-jdbc-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\spring-tx\5.0.5.RELEASE\spring-tx-5.0.5.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.2\mybatis-spring-boot-autoconfigure-1.3.2.jar;D:\Tool\MavenTool\yycg_repository\org\mybatis\mybatis\3.4.6\mybatis-3.4.6.jar;D:\Tool\MavenTool\yycg_repository\org\mybatis\mybatis-spring\1.3.2\mybatis-spring-1.3.2.jar;D:\Tool\MavenTool\yycg_repository\tk\mybatis\mapper-spring-boot-starter\1.2.3\mapper-spring-boot-starter-1.2.3.jar;D:\Tool\MavenTool\yycg_repository\tk\mybatis\mapper-spring-boot-autoconfigure\1.2.3\mapper-spring-boot-autoconfigure-1.2.3.jar;D:\Tool\MavenTool\yycg_repository\tk\mybatis\mapper\3.5.2\mapper-3.5.2.jar;D:\Tool\MavenTool\yycg_repository\javax\persistence\persistence-api\1.0\persistence-api-1.0.jar;D:\Tool\MavenTool\yycg_repository\com\alibaba\druid-spring-boot-starter\1.1.9\druid-spring-boot-starter-1.1.9.jar;D:\Tool\MavenTool\yycg_repository\com\alibaba\druid\1.1.9\druid-1.1.9.jar;D:\Tool\MavenTool\yycg_repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\Tool\MavenTool\yycg_repository\org\springframework\boot\spring-boot-autoconfigure\2.0.1.RELEASE\spring-boot-autoconfigure-2.0.1.RELEASE.jar;D:\Tool\MavenTool\yycg_repository\mysql\mysql-connector-java\5.1.32\mysql-connector-java-5.1.32.jar;D:\Tool\MavenTool\yycg_repository\com\github\pagehelper\pagehelper-spring-boot-starter\1.2.3\pagehelper-spring-boot-starter-1.2.3.jar;D:\Tool\MavenTool\yycg_repository\com\github\pagehelper\pagehelper-spring-boot-autoconfigure\1.2.3\pagehelper-spring-boot-autoconfigure-1.2.3.jar;D:\Tool\MavenTool\yycg_repository\com\github\pagehelper\pagehelper\5.1.2\pagehelper-5.1.2.jar;D:\Tool\MavenTool\yycg_repository\com\github\jsqlparser\jsqlparser\1.0\jsqlparser-1.0.jar;D:\java\IdeaSpace\04youpingou-web-parent\04youpingou-web-pojo\target\classes com.czxy.ServiceApplication
2018-12-13 15:21:48.552  INFO 13140 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@67c27493: startup date [Thu Dec 13 15:21:48 CST 2018]; root of context hierarchy
2018-12-13 15:21:48.720  INFO 13140 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-12-13 15:21:48.751  INFO 13140 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$c1287ada] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

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

2018-12-13 15:21:50.180  INFO 13140 --- [           main] com.czxy.ServiceApplication              : No active profile set, falling back to default profiles: default
2018-12-13 15:21:50.194  INFO 13140 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4b213651: startup date [Thu Dec 13 15:21:50 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@67c27493
2018-12-13 15:21:50.706 ERROR 13140 --- [           main] o.s.boot.SpringApplication               : Application run failed

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at tk.mybatis.spring.mapper.SpringBootBindUtil$SpringBoot2Bind.bind(SpringBootBindUtil.java:129) ~[mapper-spring-boot-autoconfigure-1.2.3.jar:na]
	at tk.mybatis.spring.mapper.SpringBootBindUtil.bind(SpringBootBindUtil.java:58) ~[mapper-spring-boot-autoconfigure-1.2.3.jar:na]
	at tk.mybatis.spring.mapper.ClassPathMapperScanner.setMapperProperties(ClassPathMapperScanner.java:48) ~[mapper-spring-boot-autoconfigure-1.2.3.jar:na]
	at tk.mybatis.mapper.autoconfigure.MapperAutoConfiguration$AutoConfiguredMapperScannerRegistrar.registerBeanDefinitions(MapperAutoConfiguration.java:191) ~[mapper-spring-boot-autoconfigure-1.2.3.jar:na]
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.lambda$loadBeanDefinitionsFromRegistrars$1(ConfigurationClassBeanDefinitionReader.java:357) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684) ~[na:1.8.0_181]
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromRegistrars(ConfigurationClassBeanDefinitionReader.java:356) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:144) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:328) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-5.0.5.RELEASE.jar:5.0.5.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
	at com.czxy.ServiceApplication.main(ServiceApplication.java:12) [classes/:na]
Caused by: java.lang.reflect.InvocationTargetException: null
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_181]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_181]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_181]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_181]
	at tk.mybatis.spring.mapper.SpringBootBindUtil$SpringBoot2Bind.bind(SpringBootBindUtil.java:127) ~[mapper-spring-boot-autoconfigure-1.2.3.jar:na]
	... 21 common frames omitted
Caused by: java.util.NoSuchElementException: No value bound
	at org.springframework.boot.context.properties.bind.BindResult.get(BindResult.java:56) ~[spring-boot-2.0.1.RELEASE.jar:2.0.1.RELEASE]
	... 26 common frames omitted

2018-12-13 15:21:50.710  INFO 13140 --- [           main] ConfigServletWebServerApplicationContext : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4b213651: startup date [Thu Dec 13 15:21:50 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@67c27493

Process finished with exit code 1
————————————————
版权声明:本文为CSDN博主「挚爱java的喵仙人」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_41234832/article/details/84990480

经过每个坐标的排查,终于发现了datasource没有配置,真的废了好大的功夫才发现,特此警惕!

#jdbc 配置
spring.datasource.url=jdbc:mysql://localhost:3306/aaa?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=cfn
spring.datasource.password=0909xxx

还有一个主要的原因是:通用mapper的启动版本太低,

<dependency>
	<groupId>tk.mybatis</groupId>
	<artifactId>mapper-spring-boot-starter</artifactId>
	<version>1.2.3</version>
		<exclusions>
			<exclusion>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-starter-jdbc</artifactId>
			</exclusion>
	</exclusions>
</dependency>

改高一点就OK了!

<dependency>
	<groupId>tk.mybatis</groupId>
	<artifactId>mapper-spring-boot-starter</artifactId>
	<version>2.0.2</version>
		<exclusions>
			<exclusion>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-starter-jdbc</artifactId>
			</exclusion>
	</exclusions>
</dependency>

 类似资料: