Spring Bean Configuration.xml 설정
기본 Spring Bean Configuration.xml에 대한 설정정보와 설정방법들에 대한 페이지
Intro
1. root-context.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>태그 살펴보기
<beans xmlns="http://www.springframework.org/schema/beans"> xml의 기본 스키마 설정. 현재 문서에서는 beans접두어를 붙이지 않아도 beans내부이 태그를 이용할 수 있게끔 해주는 속성이다.xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" XMLSchema-instance의 정보를 선언하는 부분xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd"> 선언된 스키마정보들의 Location을 정의하는 부분.
모듈 추가하기


데이터베이스 연결하기
1단계 ) DataSource생성
태그명
태그기능
2단계 ) Mybatis Spring에서 제공하는 sqlSessionFactoryBean객체 생성
3단계) SqlSessionTemplate 객체 생성
태그명
태그기능
2.Servlet-context.xml
태그 살펴보기
Last updated