这个问题出现,不要慌,首先这个提示的意思是,你的url写的出现错误,就是这个地方

spring.datasource.url=jdbc:mysql://localhost:3306/yourdatabasesname?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull

yourdatabasesname:为你要连接的数据库的名字

然后你自己再看了一下发现没错误,这就尴尬了,但是不妨试试:

1 打开记事本,把你的url 复制进去;

2 然后把配置文件中的 url 删除,重新写一次。从记事本给idea 里面复制,从网页copy过去的那些格式我说不清,有些奇奇怪怪的问题你看不出来,感觉正确但是实际是不一样的。我就改好了。

3此图为证:

The connection property 'zeroDateTimeBehavior' only accepts values of the form: 'exception', 'round'

相关文章:

  • 2021-10-20
  • 2021-12-01
  • 2021-10-15
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-11-04
  • 2021-09-17
相关资源
相似解决方案