完善提示信息

This commit is contained in:
mazhicheng 2020-07-05 18:22:27 +08:00
parent 85523dbda1
commit a9f7a54bf8
2 changed files with 6 additions and 1 deletions

View File

@ -283,7 +283,7 @@ public class ContextHelper implements ApplicationContextAware {
}
}
if(DATABASE_TYPE == null){
log.warn("无法识别数据库类型,请检查配置!");
log.warn("无法识别数据库类型,请检查数据源配置:spring.datasource.url等");
}
return DATABASE_TYPE;
}

View File

@ -44,6 +44,11 @@ diboot-core-starter是在diboot-core的基础上增加了自动配置配置
<version>{latestVersion}</version>
</dependency>
~~~
根据使用场景你还可能需要将com.diboot.core加入包扫描
~~~java
@ComponentScan(basePackages={"com.diboot.core"})
@MapperScan(basePackages = {"com.diboot.core.mapper"})
~~~
## 启动报错找不到mapper中的自定义接口
diboot-devtools默认不指定mapper.xml路径时mapper.xml文件会生成到mapper同路径下便于维护。