IDEA使用C3P0链接MySQL8.0.11时,db.properties中注意点。

c3p0连接那里user=${jdbc.user}一定要用jdbc.user,只用user不行。。命名规范为xxx.xx

 
jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/mybatisdb?useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=CONVERT_TO_NULL&useUnicode=true&characterEncoding=UTF-8&allowPublicKeyRetrieval=true
jdbc.username=root
jdbc.password=root

否则会出现以下问题:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

posted @ 2020-05-09 12:16  JDLiao  阅读(639)  评论(0编辑  收藏  举报