SpringBoot 사용 Mybatis-generator 설정 과정 상세 설명

:>Spring initialier 를 사용 하려 면 설정 파일 이 필요 합 니 다.

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.2a     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 에서 그림 과 같은 위 치 를 클릭 하 세 요.

테스트 진 궁

이상 이 바로 본 고의 모든 내용 입 니 다.여러분 의 학습 에 도움 이 되 고 저 희 를 많이 응원 해 주 셨 으 면 좋 겠 습 니 다.

좋은 웹페이지 즐겨찾기