配置SSM发现一错误如下:
The content of element type “configuration” must match
“(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?)”.
其实提示的很准确了,配置的时候要按顺序。常用的如下
1.properties–>用于引入配置文件如
2.settings–>各种配置比如映射下划线到驼峰命名、延迟加载
3.–typeAliases>别名处理
4.environment–>也就是连接数据库的具体信息
5.mappers–>映射文件
The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHa
最新推荐文章于 2022-08-18 15:43:50 发布