在创建测试运行时时遇到的问题:
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-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).
并且在下面的详情中看到以下内容:
可能是spring的jar包冲突引起的,找到上面放jar包依赖的目录,将repository里面的内容全部删除,重新加载pom.xml文件下载jar包依赖。
重新配置好之后,运行还是有问题,但是这时候报错的原因已经变成这样了:
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.ex