在你的主类中找到@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这个问题相关推荐

  1. [异常笔记] spring cloud 服务消费者启动-2018040501

    一.异常信息: Error starting ApplicationContext. To display the auto-configuration report re-run your appl ...

  2. java was datasource_使用Spring Boot配置Druid时dataSource无法被autowired

    配置好了dataSource之后,想测试一下有没有配置成功 package com.yang.Controller; import com.alibaba.druid.pool.DruidDataSo ...

  3. Spring Boot——[JPA 无法注入 JpaRepository 子接口问题]解决方案

    问题描述 Error starting ApplicationContext. To display the conditions report re-run your application wit ...

  4. 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 ...

  5. springboot项目 o.s.b.d.LoggingFailureAnalysisReporter 错误解决方法

    文章目录 报错时间 报错场景 报错代码和错误信息 报错原因 解决方法 参考资料 报错时间 2020年4月9日21:04:32 报错场景 创建springboot后启动application报错 报错代 ...

  6. SpringBoot+JPA 项目启动失败,无法扫描到Repository

    我的项目启动时报错: Description:Field bannerRepository in com.zhou.wade.service.impl.BannerServiceImpl requir ...

  7. 报错ERROR:Skipping MapperFactoryBean with name 'xxxMapper' and 'xxx.xxx.xxx.mapper.xxxxxMapper'

    报错信息:Skipping MapperFactoryBean with name 'xxxMapper' and 'xxx.xxx.xxx.mapper.xxxxxMapper' nterface. ...

  8. idea 导入halo报错

    错误1 idea Unable to load class 'org.gradle.api.internal.plugins.DefaultConvention' 这个错误是idea中的某个插件和gr ...

  9. 【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 ...

最新文章

  1. ant Design Pro 登录状态管理
  2. linux下汇编程序gas,Linux 汇编语言(GNU GAS汇编)开发指南
  3. 虚拟机里安装Linux系统出现乱码
  4. Luogu P2920 时间管理【二分答案】
  5. 服务器推送信息到客户端,服务器如何发送消息到客户端
  6. SQL 除去数字中多于的0
  7. 填问卷,得《2015中国呼叫中心知识库现状与问题报告》
  8. 10个你可能没用过的linux命令
  9. eclipse中文乱码解决_Stata中文乱码顽疾解决方法-一行命令
  10. linux下无权限安装ffmpeg-4.1.3
  11. 从博客专栏想到的数据分析
  12. 如何在 macOS Monterey 或更早版本中隐藏或显示 Dock 栏?
  13. buuctf刷题记录2 相册
  14. ConfuserEx 脱壳软件 使用教程
  15. java导出文件放到压缩包里
  16. 联想G40笔记本U盘重装win7系统问题笔记
  17. 未定义错误c语言中英文,C语言编程出错英汉提示对照表
  18. 推荐三款 Mac 上的理财神器 iCompta、Rublik、UctoX
  19. ERA5风场速度提取(某区域某时间段),u/v合成风向计算,python绘图。
  20. 代码写累了,一起看个电影吧☺

热门文章

  1. 麦克斯韦方程组学习心得与记录
  2. 2021-06-11 智能汽车和自动驾驶行业人才状态初探
  3. git命令上传和下载代码
  4. 克拉拉新作品《深爱》七夕上映,独立洒脱实力诠释职场女性
  5. 计蒜客习题:骑车比赛
  6. U盘插上不显示解决方法
  7. 5G上下行传输方案及资源块映射
  8. IT人员力求创新的15个方法
  9. 中国空气质量在线监测分析平台-js混淆的坑
  10. python中3or5-python3 中 and 和 or 运算规律