![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Boot
清风暖云
不甘平庸而又害怕努力的人终将归于平庸!
展开
-
Cannot download ‘https://xxx‘:connect timed out
导入jar包时出现这个错误,当时很懵逼,没改动任何配置啊,而且这个是jar包无法下载(超时),看了网上的一堆,觉得不对劲,最后一招轻松搞定,错误如下:Initialization failed for 'https://startspring.io'Please check URL, network and proxy settings.Error message:Cannot download 'https://startspring.io':connect timed out解决办法:重启原创 2021-04-12 18:34:41 · 456 阅读 · 0 评论 -
The bean ‘xxx‘ could not be injected as a ‘xxx‘ because it is a JDK dynamic proxy that implements:
这种错误不仅在mapper(dao)层,在service层也会出现~我当时在本地跑的时候一点问题都没得有,因为我的这个项目我只拉下来一个模块,并没有把其他模块拉下来,结果在提交代码往测试环境上推了后项目直接起不来,并报了如下错误~错误信息:Description:The bean 'attachMapper' could not be injected as a 'org.macrocloud.modules.sys.mapper.ProcessInspectionAttachMapper' be原创 2021-04-09 16:37:54 · 5875 阅读 · 0 评论 -
Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required
SpringBoot 整合 Mybatis 时可能会出现 :Property ‘sqlSessionFactory’ or ‘sqlSessionTemplate’ are required 的错误,在网上找了一些原基因和解决办法,总结一下:原因:使用STS创建的SpringBoot项目,其中配置文件默认的是application.properties,一般在这个文件里面配置数据源。但是这个文件想要起作用,则必须在配置主类中加入@EnableAutoConfiguration(exclude={Data原创 2021-03-31 17:27:04 · 937 阅读 · 0 评论 -
Failed to bind properties under ‘mybatis-plus.global-config.db-config.id-type‘ to com.baomidou.my...
错误信息:2021-03-31 16:06:00.854 INFO 8840 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]2021-03-31 16:06:00.867 INFO 8840 --- [ main] ConditionEvaluationReportLoggingListener : Error starting Applica原创 2021-03-31 16:11:56 · 10812 阅读 · 0 评论 -
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
此错误的原因是,Idea 没有指定 resource 目录,导致启动时没读取到resource内的配置文件,指定resource目录的方法:右击 resource 文件夹 -> Mark Directory as ->Sources Root,如下图所示操作:原创 2021-03-31 11:50:26 · 257 阅读 · 0 评论 -
Spring Boot 整合 Swagger(knife4j)
Spring Boot 整合 Swagger(knife4j)1、创建一个Spring Boot 项目2、配置Swagger2.1、 pom文件引入2.2、 SwaggerConfig文件配置信息2.3、controller层2.4、application.yml(或者是:application.properties)2.5、运行项目使用Swagger调试接口1、创建一个Spring Boot 项目此步骤不进行详细描述;2、配置Swagger2.1、 pom文件引入<depende原创 2021-03-30 17:05:14 · 478 阅读 · 5 评论 -
Spring Boot项目搭建(1) —— 开发工具及其项目创建
”Spring Boot项目搭建“记录了本人自学Spring Boot框架的一系列笔记,从开发工具的选择到项目、业务的正常运行。原创 2020-07-27 12:49:55 · 233 阅读 · 0 评论