RCdoudou 2022-02-28 18:57 采纳率: 95.7%
浏览 93
已结题

关于springboot启动不成功问题

今天学习尚硅谷springcloud,但是启动不成功

img


F:\java\jdk\1.8\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always "-javaagent:F:\Program Files\JetBrains\IntelliJ IDEA 2021.2.1\lib\idea_rt.jar=65227:F:\Program Files\JetBrains\IntelliJ IDEA 2021.2.1\bin" -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath F:\java\jdk\1.8\jre\lib\charsets.jar;F:\java\jdk\1.8\jre\lib\deploy.jar;F:\java\jdk\1.8\jre\lib\ext\access-bridge-64.jar;F:\java\jdk\1.8\jre\lib\ext\cldrdata.jar;F:\java\jdk\1.8\jre\lib\ext\dnsns.jar;F:\java\jdk\1.8\jre\lib\ext\jaccess.jar;F:\java\jdk\1.8\jre\lib\ext\jfxrt.jar;F:\java\jdk\1.8\jre\lib\ext\localedata.jar;F:\java\jdk\1.8\jre\lib\ext\nashorn.jar;F:\java\jdk\1.8\jre\lib\ext\sunec.jar;F:\java\jdk\1.8\jre\lib\ext\sunjce_provider.jar;F:\java\jdk\1.8\jre\lib\ext\sunmscapi.jar;F:\java\jdk\1.8\jre\lib\ext\sunpkcs11.jar;F:\java\jdk\1.8\jre\lib\ext\zipfs.jar;F:\java\jdk\1.8\jre\lib\javaws.jar;F:\java\jdk\1.8\jre\lib\jce.jar;F:\java\jdk\1.8\jre\lib\jfr.jar;F:\java\jdk\1.8\jre\lib\jfxswt.jar;F:\java\jdk\1.8\jre\lib\jsse.jar;F:\java\jdk\1.8\jre\lib\management-agent.jar;F:\java\jdk\1.8\jre\lib\plugin.jar;F:\java\jdk\1.8\jre\lib\resources.jar;F:\java\jdk\1.8\jre\lib\rt.jar;F:\java\com.xiechen.springcloud\clould-provider-payment8001\target\classes;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter-web\2.2.2.RELEASE\spring-boot-starter-web-2.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter\2.2.2.RELEASE\spring-boot-starter-2.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter-logging\2.2.2.RELEASE\spring-boot-starter-logging-2.2.2.RELEASE.jar;F:\path\to\local\repo\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;F:\path\to\local\repo\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;F:\path\to\local\repo\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;F:\path\to\local\repo\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;F:\path\to\local\repo\org\slf4j\jul-to-slf4j\1.7.29\jul-to-slf4j-1.7.29.jar;F:\path\to\local\repo\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;F:\path\to\local\repo\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter-json\2.2.2.RELEASE\spring-boot-starter-json-2.2.2.RELEASE.jar;F:\path\to\local\repo\com\fasterxml\jackson\core\jackson-databind\2.10.1\jackson-databind-2.10.1.jar;F:\path\to\local\repo\com\fasterxml\jackson\core\jackson-annotations\2.10.1\jackson-annotations-2.10.1.jar;F:\path\to\local\repo\com\fasterxml\jackson\core\jackson-core\2.10.1\jackson-core-2.10.1.jar;F:\path\to\local\repo\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.1\jackson-datatype-jdk8-2.10.1.jar;F:\path\to\local\repo\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.1\jackson-datatype-jsr310-2.10.1.jar;F:\path\to\local\repo\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.1\jackson-module-parameter-names-2.10.1.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter-tomcat\2.2.2.RELEASE\spring-boot-starter-tomcat-2.2.2.RELEASE.jar;F:\path\to\local\repo\org\apache\tomcat\embed\tomcat-embed-core\9.0.29\tomcat-embed-core-9.0.29.jar;F:\path\to\local\repo\org\apache\tomcat\embed\tomcat-embed-el\9.0.29\tomcat-embed-el-9.0.29.jar;F:\path\to\local\repo\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.29\tomcat-embed-websocket-9.0.29.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter-validation\2.2.2.RELEASE\spring-boot-starter-validation-2.2.2.RELEASE.jar;F:\path\to\local\repo\jakarta\validation\jakarta.validation-api\2.0.1\jakarta.validation-api-2.0.1.jar;F:\path\to\local\repo\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;F:\path\to\local\repo\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;F:\path\to\local\repo\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;F:\path\to\local\repo\org\springframework\spring-web\5.2.2.RELEASE\spring-web-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\spring-beans\5.2.2.RELEASE\spring-beans-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\spring-webmvc\5.2.2.RELEASE\spring-webmvc-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\spring-aop\5.2.2.RELEASE\spring-aop-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\spring-context\5.2.2.RELEASE\spring-context-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\spring-expression\5.2.2.RELEASE\spring-expression-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter-actuator\2.2.2.RELEASE\spring-boot-starter-actuator-2.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-actuator-autoconfigure\2.2.2.RELEASE\spring-boot-actuator-autoconfigure-2.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-actuator\2.2.2.RELEASE\spring-boot-actuator-2.2.2.RELEASE.jar;F:\path\to\local\repo\io\micrometer\micrometer-core\1.3.1\micrometer-core-1.3.1.jar;F:\path\to\local\repo\org\hdrhistogram\HdrHistogram\2.1.11\HdrHistogram-2.1.11.jar;F:\path\to\local\repo\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;F:\path\to\local\repo\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.0\mybatis-spring-boot-starter-1.3.0.jar;F:\path\to\local\repo\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.0\mybatis-spring-boot-autoconfigure-1.3.0.jar;F:\path\to\local\repo\org\mybatis\mybatis\3.4.4\mybatis-3.4.4.jar;F:\path\to\local\repo\org\mybatis\mybatis-spring\1.3.1\mybatis-spring-1.3.1.jar;F:\path\to\local\repo\com\alibaba\druid-spring-boot-starter\1.1.16\druid-spring-boot-starter-1.1.16.jar;F:\path\to\local\repo\com\alibaba\druid\1.1.16\druid-1.1.16.jar;F:\path\to\local\repo\org\slf4j\slf4j-api\1.7.29\slf4j-api-1.7.29.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-autoconfigure\2.2.2.RELEASE\spring-boot-autoconfigure-2.2.2.RELEASE.jar;F:\path\to\local\repo\mysql\mysql-connector-java\8.0.26\mysql-connector-java-8.0.26.jar;F:\path\to\local\repo\com\google\protobuf\protobuf-java\3.11.4\protobuf-java-3.11.4.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-starter-jdbc\2.2.2.RELEASE\spring-boot-starter-jdbc-2.2.2.RELEASE.jar;F:\path\to\local\repo\com\zaxxer\HikariCP\3.4.1\HikariCP-3.4.1.jar;F:\path\to\local\repo\org\springframework\spring-jdbc\5.2.2.RELEASE\spring-jdbc-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\spring-tx\5.2.2.RELEASE\spring-tx-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot-devtools\2.2.2.RELEASE\spring-boot-devtools-2.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\boot\spring-boot\2.2.2.RELEASE\spring-boot-2.2.2.RELEASE.jar;F:\path\to\local\repo\org\projectlombok\lombok\1.16.18\lombok-1.16.18.jar;F:\path\to\local\repo\org\springframework\spring-core\5.2.2.RELEASE\spring-core-5.2.2.RELEASE.jar;F:\path\to\local\repo\org\springframework\spring-jcl\5.2.2.RELEASE\spring-jcl-5.2.2.RELEASE.jar com.xc.springcloud.Payment8001main
18:50:59.084 [background-preinit] DEBUG org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator - Loaded expression factory via original TCCL
18:50:59.089 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator as ValidatorFactory-scoped message interpolator.
18:50:59.089 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.resolver.TraverseAllTraversableResolver as ValidatorFactory-scoped traversable resolver.
18:50:59.089 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.util.ExecutableParameterNameProvider as ValidatorFactory-scoped parameter name provider.
18:50:59.089 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.DefaultClockProvider as ValidatorFactory-scoped clock provider.
18:50:59.090 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234: Using org.hibernate.validator.internal.engine.scripting.DefaultScriptEvaluatorFactory as ValidatorFactory-scoped script evaluator factory.
18:50:59.216 [restartedMain] DEBUG org.springframework.boot.context.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/F:/java/com.xiechen.springcloud/clould-provider-payment8001/target/classes/]
18:50:59.217 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:545)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadForFileExtension(ConfigFileApplicationListener.java:494)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:464)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$null$7(ConfigFileApplicationListener.java:443)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$8(ConfigFileApplicationListener.java:443)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:440)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$0(ConfigFileApplicationListener.java:335)
at org.springframework.boot.context.config.FilteredPropertySource.apply(FilteredPropertySource.java:54)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:323)
at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:214)
at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:198)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:188)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:176)
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.environmentPrepared(EventPublishingRunListener.java:76)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:345)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.xc.springcloud.Payment8001main.main(Payment8001main.java:12)
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.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: org.yaml.snakeyaml.scanner.ScannerException: mapping values are not allowed here
in 'reader', line 11, column 10:
url: jdbc:mysql://localhost:3306/cl ...
^

at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:870)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:358)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227)
at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:217)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239)
at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
at org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:239)
at org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:230)
at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:218)
at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:144)
at org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:85)
at org.yaml.snakeyaml.constructor.BaseConstructor.getData(BaseConstructor.java:125)
at org.yaml.snakeyaml.Yaml$1.next(Yaml.java:548)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:160)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:134)
at org.springframework.boot.env.OriginTrackedYamlLoader.load(OriginTrackedYamlLoader.java:75)
at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:50)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadDocuments(ConfigFileApplicationListener.java:562)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:518)
... 30 common frames omitted

进程已结束,退出代码为 0

按照视频一步一步来的 结果还是跪了.

  • 写回答

1条回答 默认 最新

  • 大鹏cool Java领域优质创作者 2022-02-28 19:31
    关注

    classpath:/application.yml 去掉 / 试试吧

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 3月10日
  • 已采纳回答 3月2日
  • 创建了问题 2月28日

悬赏问题

  • ¥15 如何用Thoony写ESP32温湿度检测无源蜂鸣器报警代码?
  • ¥20 部件内部的CT图像数据集
  • ¥15 Visual studio调用动态库
  • ¥15 双目摄像头标定后的校准文件
  • ¥15 powerbi矩阵增加度量值后出现对应关系错乱
  • ¥30 频率分析法分析绘制奈奎斯特图、波特图
  • ¥15 弹出来一万个系统找不到指定的文件框框,怎么解决
  • ¥15 ADS生成的微带线为什么是蓝色空心的
  • ¥15 求一下解题思路,完全不懂
  • ¥15 tensorflow