본문 바로가기
Framework | Test/Spring

[Spring] xml 설정 파일

by Baest 2021. 8. 15.

Spring의 경우 xml을 통해 bean 설정을 해줄 수 있는데, xml의 초기 설정 내용은 아래와 같다.

plugin을 설치해서 자동으로 넣어줄 수도 있다고 하는데 아직 개념이 잡히지 않아서 아래에 기록용으로 남겨둔다.

 

- bean 등록과 설정을 모두 xml로 할 경우의 기본 포맷

 

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2021/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

 

</beans>