SpringBoot 사용 Mybatis-generator 설정 과정 상세 설명
POM 파일
org.springframework.boot spring-boot-starter-web org.mybatis.spring.boot mybatis-spring-boot-starter 2.1.1 org.springframework.boot spring-boot-devtools runtime true mysql mysql-connector-java runtime org.springframework.boot spring-boot-starter-test test org.junit.vintage junit-vintage-engine org.mybatis.generator mybatis-generator-maven-plugin 1.3.2 mybatis-generator deploy generate src/main/resources/mybatis-generator/generatorConfig.xml true true mysql mysql-connector-java 8.0.19 org.mybatis.generator mybatis-generator-core 1.3.2 a org.springframework.boot spring-boot-maven-plugin exec
1:애플 리 케 이 션 프로필## mapper xml mybatis.mapper-locations=classpath*:mapper/*Mapper.xml## urlspring.datasource.url=jdbc:mysql://localhost/test2?userSSL=true&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT## spring.datasource.username=root## spring.datasource.password=root## spring.datasource.driver-class-name=com.mysql.jdbc.Driver#Mybatis Generator configuration#dao mybatis.project =src/main/java#mapper mybatis.resources=src/main/resources
Mybatis-generator
설정 3:설정오른쪽 Maven 에서 그림 과 같은 위 치 를 클릭 하 세 요.
테스트 진 궁
이상 이 바로 본 고의 모든 내용 입 니 다.여러분 의 학습 에 도움 이 되 고 저 희 를 많이 응원 해 주 셨 으 면 좋 겠 습 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
[MeU] Hashtag 기능 개발➡️ 기존 Tag 테이블에 존재하지 않는 해시태그라면 Tag , tagPostMapping 테이블에 모두 추가 ➡️ 기존에 존재하는 해시태그라면, tagPostMapping 테이블에만 추가 이후에 개발할 태그 기반 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.