develog

DTD-style vs Xml Schem-style in Spring 2.5 본문

Dev/Java

DTD-style vs Xml Schem-style in Spring 2.5

냐옴 2012. 12. 4. 10:59

http://static.springsource.org/spring/docs/2.5.x/reference/xsd-config.html


DTD-style

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
    "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

<!-- <bean/> definitions here -->

</beans>


XML Schema-style

<?xml version="1.0" encoding="UTF-8"?>
<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 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<!-- <bean/> definitions here -->

</beans>

'Dev > Java' 카테고리의 다른 글

Quartz Test  (0) 2012.12.04
ApplicationContext 가져오는 방법  (0) 2012.12.04
ant 에서 ssh 사용  (0) 2012.12.01
SQL Developer 에러 조치  (0) 2012.11.27
try catch finally - Flow test  (0) 2012.11.25
Comments