티스토리 뷰
[Mybatis] The content of element type "configuration" must match "....
터프남 2021. 9. 23. 17:20
문제
mybatits config xml 파일 수정 중 아래와 같은 내용 발생
The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?)".
해결
configuration의 요소 정의 순서가 아래와 같아야 된다는 오류. 이런 거도 맞춰야 하는구나..
<configuration>
properties
settings
typeAliases
typeHandlers
objectFactory
objectWrapperFactory
reflectorFactory
plugins
environments
databaseIdProvider
mappers
</configuration>
<configuration>
<properties></properties>
<settings>
<setting name="" value=""/>
</settings>
<typeAliases></typeAliases>
<typeHandlers></typeHandlers>
<objectFactory type=""></objectFactory>
<objectWrapperFactory type=""/>
<reflectorFactory type=""/>
<plugins>
<plugin interceptor=""></plugin>
</plugins>
<environments default="">
<environment id="">
<transactionManager type=""></transactionManager>
<dataSource type=""></dataSource>
</environment>
</environments>
<databaseIdProvider type=""></databaseIdProvider>
<mappers></mappers>
</configuration>
참고
https://chemeez.tistory.com/106
[myBatis] The content of element type "configuration" must match ... 에러
The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databa..
chemeez.tistory.com
- Total
- Today
- Yesterday
- intellij
- Bash tab
- mybatis config
- mybatis
- Spring
- 북리뷰
- k8s
- elasticsearch
- 베리 심플
- jQuery
- rocky
- LocalDate
- Java
- springboot
- Spring Security
- maven
- Mac
- localtime
- Kotlin
- config-location
- claude
- docker
- input
- window
- LocalDateTime
- svn
- oracle
- 오라클
- JavaScript
- Linux
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |