重新加载maven依赖项,点击SpringBoot启动类进行启动,问题依然如故,我琢磨半天后,认为问题应该不是maven依赖的造成的,而是其他原因导致的。 随后,继续使用debug模式,查看出错的具体信息,在一层一层的进入到读取配置信息的方法中,发现在配置环境变量时,读取到的配置信息中,activeProfiles=[],defaultProfiles=[default],这里...
采用debug模式启动总是停留在 点击后: 鼠标放在ex上: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'regionController': Unsatisfied dependency expressed through field 'aliConstants'; nested exception is org.springframework.beans.factory.BeanCreationException: Erro...
看到没,没有任何有用信息啊,但是就是启动了一会然后自动停止了。 具体debug找原因的过程我就不说了,其实根本原因就是log4j和common-logs这俩日志包冲突了,解决方法呢,有两种, 第一:解决冲突,排除掉slf4j,common-logs任意一方,spring使用slf4j,那可以排除掉common-logs 第二: 打通log4j和common-logs,让它们合二为...
在启动springboot的时候,突然不能正确启动了,无论是debug还是run模式,代码无报错,就显示了两行代码。 开发工具:IntelliJ IDEA 2021.1 x64 操作系统:windows 10 专业版 Disconnected from the target VM, add…
1.启动项目的时候报错 1.Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 1. 2. 解决方法: 在yml配置文件中加入debug: true,因为默认的话是false 2.在集成mybatis时mapper包中的类没被扫描 ...
今天上午,一到公司,就开始研究springboot(或者应该叫springcloud?这两个启动类一样)项目无法启动的原因。 问题: springboot项目跑不起来,还不报错,控制台只有debug与info标签,最后打印stopping service [Tomcat],退出参数有时候是0,有时候是1。 解决方法: ...
如果是debug模式的断点引起的话,去掉所有断点再试试 如果是项目目录结构变更,这个maven clean一下,重新install 即可 如果可以变更启动类的话,建议在开发阶段对启动类的main方法里面的代码加上try-catch,这样启动项目的时候就知道具体异常是什么 如果说分析哪些程序自启的代码导致项目启动卡住的话,我建议查看项目启动快照...
第一种:配置pom.xml设置热启动和debug 1、添加依赖 添加热启动的依赖spring-boot-devtools,然后再配置插件。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>provided</scope> <!--optional我没弄明白,都说必须为true,但我测试true,false,不加...