#用mtbatis做项目时出现的奇奇怪怪的bug
出现报错
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
Process finished with exit code 1
检查resources里面的yml配置文件
没有报错,但是出现黄色底纹警报
解决问题
查了好多解决方案,还换了云数据库,最后居然是格式问题 注意:spring前面要定格,不能有空格,mybatis同样!!!