完善提示信息
This commit is contained in:
parent
85523dbda1
commit
a9f7a54bf8
|
@ -283,7 +283,7 @@ public class ContextHelper implements ApplicationContextAware {
|
|||
}
|
||||
}
|
||||
if(DATABASE_TYPE == null){
|
||||
log.warn("无法识别数据库类型,请检查配置!");
|
||||
log.warn("无法识别数据库类型,请检查数据源配置:spring.datasource.url等");
|
||||
}
|
||||
return DATABASE_TYPE;
|
||||
}
|
||||
|
|
|
@ -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同路径下便于维护。
|
||||
|
|
Loading…
Reference in New Issue