티스토리 뷰

728x90

문제

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

728x90
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/12   »
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 31
글 보관함