
spring boot
ヾ凉秋
哪有什么一见钟情、不过是见色起意罢了、
展开
-
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 8.074 s <<< FAILURE - in com.xxx.X
报错内容:Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 8.074 s <<< FAILURE! - in com.xxx.XXXTests contextLoads Time elapsed: 0.013 s <<< ERROR!报错原因:项目Install打包报错解决方法:可以将test不打包,方法选中test点击上面类似闪电的按钮即可。操作步骤:这样子就直接运行成功原创 2022-04-15 15:46:14 · 5236 阅读 · 2 评论 -
FileNotFoundException: class path resource [src/Bean.xml] cannot be opened because it does not exist
报错信息:IOException parsing XML document from class path resource [src/Bean.xml]; nested exception is java.io.FileNotFoundException: class path resource [src/Bean.xml] cannot be opened because it does not exist在根据网上配置项目的时候,文章说Bean.xml文件放到src文件下但是这样子就是找不到文原创 2022-02-22 11:00:25 · 1140 阅读 · 0 评论 -
SpringBoot使用监听器Listener详解
SpringBoot使用监听器Listener使用转载 2022-02-15 10:39:37 · 7782 阅读 · 0 评论 -
运行报错:错误: 找不到或无法加载主类 com.xxx.xxxApplication
报错提示:错误: 找不到或无法加载主类 com.xlx.XlxCommonApplication解决方法:点击输入以下代码:mvn clean compilemvn installmvn spring-boot:run然后就可以啦原创 2021-08-13 17:16:06 · 1037 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
报错内容·:报错原因:因为是配置文件里面没有涉及到数据库内容所以报错;解决方法:原创 2021-03-20 16:15:05 · 80 阅读 · 0 评论 -
org.springframework.web.bind.MissingPathVariableException: Missing URI template variable ‘courseId‘
运行项目的时候报错:org.springframework.web.bind.MissingPathVariableException: Missing URI template variable ‘courseId’ for method parameter of type可以看到我的getChapterVideo方法后面没有参数解决方法就是在后面加上这个字段就可以了...原创 2021-05-08 16:06:49 · 2135 阅读 · 0 评论 -
启动报错Description: Failed to configure a DataSource: ‘url‘attribute is not specif: Reason:
报错信息:Description:Failed to configure a DataSource: 'url’attribute is not specif:Reason: Failed to determine a suitable driver class错误原因启动时候,找到数据库配置,但是现在的模块不需要数据库操作,只是做了其他功能,没有配置数据库解决方法:方法1:添加上数据库配置,在application.properties文件方法2:在启动类上添加属性,默认不去加载数据库配置原创 2021-01-20 11:27:52 · 41153 阅读 · 28 评论 -
Cannot access org.springframework.core.env.EnvironmentCapable报错问题(启动类);maven的子项目是灰色的解决方法
Springboot启动类中Cannot access org.springframework.core.env.EnvironmentCapable的解决办法主要的问题1SpringApplication.run这里总是编译不过解决方法:找到你的本机仓库repository\org\springframework把目录下的所有文件删除,重新编译即可解决问题主要的原因版本不一致问题2maven中看到我的service_oss是灰色的产生原因:说明该service_oss模块被mav原创 2021-05-08 16:06:58 · 1662 阅读 · 0 评论