Spring Boot 启动错误:To display the conditions report re-run your application with 'debug' enable

这个错也折腾了我好久,醉胡总结就是mysql驱动版本问题。

首先看看application.properties文件里查看mysql驱动
application.properties文件
正确的应该为:
application.properties文件
然后进入pom.xml看看导入到炸包版本

  <dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-thymeleaf</artifactId>
  <version>2.0.4.RELEASE</version>
  </dependency>

这里注意版本号 2.0.4.RELEASE 之前用的的2.1.3.RELEASE,版本过高。

下面为正确的炸包配置

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8"?>


4.0.0

org.springframework.boot
spring-boot-starter-parent
2.0.4.RELEASE




0.0.1-SNAPSHOT

org.springframework.boot spring-boot-starter-web mysql mysql-connector-java runtime org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.2 org.springframework.boot spring-boot-starter-thymeleaf org.springframework.boot spring-boot-starter-test test
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.4.0</version>
org.springframework.boot spring-boot-maven-plugin
  • 6
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 16
    评论
评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值