728x90
root-context 기본
root-context Namsepaces 기본 값 [설정 전]
Namsepaces를 설정하기전에 porm.xml을 설정하고 진행한다.
체크를 하고 저장을하면 자동으로 코드가 추가되는 것을 볼 수 있다.
mapper 설정
mappers/**/*Mapper.xml"
mappers -> 패키지명 "Mapper.xml" -> 파일명
/*Mapper.xml -> 의미
[ 파일명중에서 앞에 글자는 아무거나 상관 없다 뒤에 Mapper.xml로 끝나야함 ex aaAbMapper.xml ]
<mybatis-spring:scan base-package="com.spring.springTest.dao"/>
( com.spring.springTest.dao -> dao 위치 , 항상 main/java에 만듬 )
Dao 는 다음 글에 계속 ...
728x90
'Web > Spring , Springboot , JPA' 카테고리의 다른 글
Spring DB연동 1 (0) | 2020.06.01 |
---|---|
Spring 기본 4 - STS Data source Explorer 설치 (0) | 2020.06.01 |
Spring 기본 2 - pom.xml 설정 [스프링 환경설정] [MyBatis설정] (0) | 2020.05.31 |
Spring - @RequestMapping-Test[1~5] (0) | 2020.05.29 |
Spring 설정방법 [Main] (0) | 2020.05.28 |