采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
同样的配置用properties可以正常运行改成yml就报错百度已经解救不了我了,求解
对比一下我给的源码
url: jdbc:mysql:
//127
.0.0.1:3306
/sell
?characterEncoding=utf-8&useSSL=
false
数据库端口默认是3306,数据库名是sell
数据库是我建的时候打错的没改所以这里数据库名是没错的,重点是同样的配置我用properties是可以正常运行的改成yml就不行
你把你的代码push到git, 链接发我,我帮你看看
from the Exception of Idea sent , most likely is that it can not find your database,so you should cheer up database server or your dababase name is wrong .
change your database name from 'cell' to 'sell' , and have a try
The database name was written incorrectly when i create it so the database configuration is correct
登录后可查看更多问答,登录/注册
从0到1开发中小型企业级Java应用,并学会迭代重构技巧
8.6k 10
3.4k 4
6.9k 9
2.1k 32
4.2k 26
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号