![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
先验
菜鸟,很菜的那种
展开
-
(笔记)Nacos Unable to start web server; nested exception is org.springframework.boot.web.server.WebSer
1. 启动Nacos报了以下错误org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.servlet.co.原创 2021-05-15 14:08:07 · 3920 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
***************************APPLICATION FAILED TO START***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitabl...原创 2021-01-01 18:57:39 · 632 阅读 · 0 评论 -
(笔记)使用SpringDevTools开启热部署
1.在pom.xml文件中添加如下代码:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional><原创 2020-12-07 19:59:34 · 126 阅读 · 0 评论 -
(笔记)启动SpringBoot时Process finished with exit code 1解决方案
1. 原因:我在pom文件中springboot依赖的版本是2.1.5,但是启动的时候springboot版本是2.3.1。2.解决方法:点击一下,来reimport一下。然后再看看maven下面的dependencies中的springboot的版本是否与pom文件中springboot的版本一致。...原创 2020-08-01 11:37:59 · 2116 阅读 · 0 评论 -
springboot使用拦截器无法访问静态资源解决方法(笔记)
1.问题原因:1.静态资源默认映射路径是这个private String staticPathPattern = "/**";如果你没有在application.properties中配置静态资源文件的话,那么默认是映射/**这个路径的。 application.properties# 配置静态资源spring.mvc.static-path-pattern=/sta...原创 2019-09-11 16:12:31 · 1882 阅读 · 1 评论