问题原因:springboot创建临时文件找不到对应的目录 解决办法:1. 重新指定临时文件位置  java -Djava.io.tempdir=D:/tmpdir -jar -my_project.jar 2. 手动创建指定文件夹 3. 启动类中加入配置临时文件目录 @Bean MultipartConfigElement multipartConfigElement() { MultipartConfigFactory factory = new MultipartConfigFactory…
出现此问题,有可能是spring cloud 与spring boot 版本不匹配引发的问题,此次用的版本是:Finchley.RC1 经过一番关键字查找,发现spring cloud 与spring boot有着比较严格的版本匹配.不能再像开发单体应用时,随时变更spring boot的版本. 现将版本对应规则写下来,引用的是其他网友的博客. 来源:https://www.cnblogs.com/it-taosir/p/9979579.html 一.常见版本号说明 举个瓜:2.0.3 RELE…
SpringBoot项目启动报错 ERROR 2172 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Jetty servlet container ) ~[spring-boot-.RELEASE.jar…
org.springframework.boot.web.support.SpringBootServletInitializer 改为: org.springframework.boot.context.web.SpringBootServletInitializer;…
更换成新包即可import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;…
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2018-09-14 19:11:50.954 ERROR 12432 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed org.springframework.context…
SpringBoot启动时的异常信息如下: "C:\Program Files\Java\jdk1.8.0_161\bin\java" ......... com.fangxing.javalearning.annotationlearning.ComponentScanApp hello world . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \…
SpringBoot启动时的异常信息如下: 1 "C:\Program Files\Java\jdk1.8.0_161\bin\java" ......... com.fangxing.javalearning.annotationlearning.ComponentScanApp 2 hello world 3 4 . ____ _ __ _ _ 5 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ 6 ( ( )\___ | '_ | '_| | '_…
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactor…
import org.springframework.boot.autoconfigure.web.DefaultErrorAttributes→org.springframework.boot.web.servlet.error.DefaultErrorAttributes import org.springframework.boot.autoconfigure.web.ErrorAttributes;→org.springframework.boot.web.servlet.error.E…