![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
EECoding
好好加油!
展开
-
搭建微服务springcloud Eureka启动报错
报错的内容 org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 使用的spring-boot-starter-parent 版本为2.2.6.RELEASE <.原创 2020-05-13 00:46:43 · 305 阅读 · 0 评论 -
使用idea新建springboot项目浏览器访问404
初学Springboot,根据教程在idea上新建项目并启动,浏览器访问报404错误,访问路径没有问题,注解也没有使用错误,问题就出在包路径,Spring Boot默认是扫描@SpringBootApplication注解的类的同包以及子包下的类,所以解决这个问题,可以加上@ComponentScan注解,或者修改Controller的包名,比如DemoApplication所在的包名为com.x...原创 2020-04-17 00:57:56 · 722 阅读 · 0 评论