抛红像这样:
与这个设置项相关的依赖呢是
mysql-connector-java
,像这样:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
解决办法是把scope设置去掉,使用缺省值
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
OK了,不红了。
网友评论