SpringBoot
月下忘忧草
官雪is猪——致力于做一个java全栈工程师
展开
-
Springboot集成Swagger报错:Error starting ApplicationContext. To display the conditions report re-run
Springboot集成Swagger报错:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug'.....原因:maven依赖冲突,导致空指针异常springboot版本太高了,导致swagger 异常,是springboot2.6.0版本以后引起的问题。解决办法:将pom.xml的spring的版本降低到2.6.0以下,我用的2.1.1的原创 2022-10-19 12:59:18 · 860 阅读 · 0 评论 -
报错There are test failures 就三个步骤即可解决,1.clean。2.删除test测试文件,3.install即可
报错There are test failures. Please refer to E:\java\mango\mangos\target\surefire-reports for the individual test results. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.就三个步骤即可解决,1.clean。2.删除test测试文件原创 2022-10-17 11:09:27 · 14133 阅读 · 4 评论 -
Sources not found for: org.springframework.boot:spring-boot-autoconfigure:2.6.6
Sources not found for: org.springframework.boot:spring-boot-autoconfigure:2.6.6查看springboot源码只能看到.class文件,出现一一以下情况的 解决方法:找到Terminal双击打开,输入mvn dependency:resolve -Dclassifier=sources原创 2022-04-23 09:21:56 · 2296 阅读 · 4 评论 -
Error: Unable to access jarfile .\demo-0.0.1-SNAPSHOT.jar
在PowerShell窗口(s)输入java -jar .\demo-0.0.1-SNAPSHOT.jar报错例如我的是PS E:\java程序\SpringBoot-Study\demo1\target>java -jar .\demo-0.0.1-SNAPSHOT.jar输入后的报错:Error: Unable to access jarfile .\demo-0.0.1-SNAPSHOT.jar解决方法:输入绝对路径 (在target后输入)java -jar E:\java程序\S原创 2022-04-20 14:29:49 · 5942 阅读 · 1 评论