Idea编译出现[ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter这个问题
在你的主类中找到@SpringBootApplication,在其后面添加(exclude = {DataSourceAutoConfiguration.class})然后保存。
添加成功后,就是第二张图这样。
2.如果运行后,还出现[ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter这样的报错。你就需要修改你的服务器的端口号了。
修改方法。
①在你的项目main中找到resource。
②点击,按下图箭头标记创建application.properties
回车。就可以了如果出现让你选择类型,选择Spring文件类型。它的角标类似下图。(有两个,要选对)
类似于开关这样,选择后回车。
③在这个文件中输入server.port=(你想要设置的端口号。比如9090。最好不要设置8080因为默认端口就是8080想当于没改)。
Idea编译出现[ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter这个问题相关推荐
- [异常笔记] spring cloud 服务消费者启动-2018040501
一.异常信息: Error starting ApplicationContext. To display the auto-configuration report re-run your appl ...
- java was datasource_使用Spring Boot配置Druid时dataSource无法被autowired
配置好了dataSource之后,想测试一下有没有配置成功 package com.yang.Controller; import com.alibaba.druid.pool.DruidDataSo ...
- Spring Boot——[JPA 无法注入 JpaRepository 子接口问题]解决方案
问题描述 Error starting ApplicationContext. To display the conditions report re-run your application wit ...
- Field eFaultPriorityService in com.ect.emes.admin.restapi.AlarmRestApi required a bean of type 解决方法
我在其他Controller中调了其他Service方法,但是报:Field eFaultPriorityService in com.ect.emes.admin.restapi.AlarmRest ...
- springboot项目 o.s.b.d.LoggingFailureAnalysisReporter 错误解决方法
文章目录 报错时间 报错场景 报错代码和错误信息 报错原因 解决方法 参考资料 报错时间 2020年4月9日21:04:32 报错场景 创建springboot后启动application报错 报错代 ...
- SpringBoot+JPA 项目启动失败,无法扫描到Repository
我的项目启动时报错: Description:Field bannerRepository in com.zhou.wade.service.impl.BannerServiceImpl requir ...
- 报错ERROR:Skipping MapperFactoryBean with name 'xxxMapper' and 'xxx.xxx.xxx.mapper.xxxxxMapper'
报错信息:Skipping MapperFactoryBean with name 'xxxMapper' and 'xxx.xxx.xxx.mapper.xxxxxMapper' nterface. ...
- idea 导入halo报错
错误1 idea Unable to load class 'org.gradle.api.internal.plugins.DefaultConvention' 这个错误是idea中的某个插件和gr ...
- 【SpringBooot报错】eld redisTemplate in com.buba.utils.RedisUtils required a bean of type
报错如下: 2022-07-19 14:10:36.111 ERROR 16164 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporte ...
最新文章
- ant Design Pro 登录状态管理
- linux下汇编程序gas,Linux 汇编语言(GNU GAS汇编)开发指南
- 虚拟机里安装Linux系统出现乱码
- Luogu P2920 时间管理【二分答案】
- 服务器推送信息到客户端,服务器如何发送消息到客户端
- SQL 除去数字中多于的0
- 填问卷,得《2015中国呼叫中心知识库现状与问题报告》
- 10个你可能没用过的linux命令
- eclipse中文乱码解决_Stata中文乱码顽疾解决方法-一行命令
- linux下无权限安装ffmpeg-4.1.3
- 从博客专栏想到的数据分析
- 如何在 macOS Monterey 或更早版本中隐藏或显示 Dock 栏?
- buuctf刷题记录2 相册
- ConfuserEx 脱壳软件 使用教程
- java导出文件放到压缩包里
- 联想G40笔记本U盘重装win7系统问题笔记
- 未定义错误c语言中英文,C语言编程出错英汉提示对照表
- 推荐三款 Mac 上的理财神器 iCompta、Rublik、UctoX
- ERA5风场速度提取(某区域某时间段),u/v合成风向计算,python绘图。
- 代码写累了,一起看个电影吧☺