1. ant가 없다면 우선 다운을 받아야 한다.
https://ant.apache.org/index.html
Apache Ant - Welcome
Welcome Apache Ant™ Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other. The main known usage of Ant is the build of Java applications.
ant.apache.org
들어가서

ant 목록에서 다운로드 링크를 클릭하면

하단에 이렇게 자바 버전에 맞는 ant를 다운받을 수 있다.
그리고 시스템 환경변수에 가서 path를 등록해준 후 cmd 혹은 터미널 실행 후 ant -version 입력.
버전 정보가 잘 출력되면 컨버팅 준비 끝!
2. 변환 툴 다운로드
https://github.com/mybatis/ibatis2mybatis
GitHub - mybatis/ibatis2mybatis: Tool to convert iBATIS 2 xml files to MyBatis3
Tool to convert iBATIS 2 xml files to MyBatis3. Contribute to mybatis/ibatis2mybatis development by creating an account on GitHub.
github.com
릴리즈에서 파일을 받는다

다운 후 압축을 풀면 요로코롬 파일들이 보인다.
여기서 source 파일에 변환을 원하는 ibatis mapper 파일들을 넣어주고...
다시 루트로 돌아와서 shift 누르고 우클릭 후 powershell 창 열기 클릭!
그리고 ant 입력하면..!

이렇게 뜬다
정말 고마운 툴이 아닐 수가 없다... 약 이주동안 나의 마이그레이션을 잘 도와주길 바라며.
'SpringProject' 카테고리의 다른 글
<Spring 가계부 프로젝트> MySQL MyBatis 검색어 입력 시 포함된 금액의 총합을 함께 출력하려면? (0) | 2022.11.21 |
---|---|
MacOS IntelliJ IDE 부팅 후 실행이 안 될 때 (0) | 2022.11.03 |