본문 바로가기
프로그래밍/spring

sping ioc annotaion 기반 설정 예제

by 카라미 2015. 10. 27.


 applicationContext.xml


<?xml version="1.0" encoding="UTF-8"?>

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

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

xmlns:context="http://www.springframework.org/schema/context"   

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

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

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

>

<context:component-scan base-package="springExam.ioc" />

</beans>



'프로그래밍 > spring' 카테고리의 다른 글

springMVC config  (0) 2015.10.28
springMVC config  (0) 2015.10.28
spring ApplicationContext bean 초기화  (0) 2015.10.26
spring BeanFactory bean 초기화 예제  (0) 2015.10.26
spring ajax  (0) 2015.07.29