SPRING

Spring container에 설정할 수 있는 XML namespace

개발자 배찌 2021. 6. 7. 19:42
728x90

# Spring container에 설정할 수 있는 XML namespace

참고링크 : 

https://docs.spring.io/spring-framework/docs/4.3.x/spring-framework-reference/html/xsd-configuration.html

 

41. XML Schema-based configuration

First up is coverage of the util tags. As the name implies, the util tags deal with common, utility configuration issues, such as configuring collections, referencing constants, and suchlike. To use the tags in the util schema, you need to have the followi

docs.spring.io

1) aop : aspect 선언을 위한 element와 @AspectJ annoatation이 적용된 클래스를 자동적으로 Spring aspect로 proxy하는 element를 제공

2) beans : 핵심 원시 Spring namespace로, Bean 선언과 연결 방법을 정의

3) context : Spring에 의해서 직접 관리되지 않는 객체의 주입(Injection)과 Bean을 자동검출

(AutoDetect)하고 오토와이어링(AutoWiring)하는 기능을 포함하여 Spring Application Context를 설정(configuration)하기 위한 element를 제공.

4) jee : JNDI와 EJB등의 JEE API와의 통합을 제공

5) jms : Message Driven POJO를 선언하기 위한 설정 element를 제공

6) lang : Groovy, JRuby, 또는 BeanShell Script로 구현되는 Bean 선언을 가능하게 한다.

7) mvc : annotation 지향 controller, view controller, 그리고 interceptor 등의 Spring MVC 기능을 가능하게 한다.

8) oxm : Spring 객체 대 XML Mapping 구조의 설정을 지원.

9) tx : 선언된 transaction을 제공.

10) util : utility element의 다양한 선택, collection을 Bean으로 선언하는 기능과 Property 대치(placeholder) element에 대한 지원을 포함.

11) c : constructor-arg 태그 에 해당되는 생성자 인자 지정 속성.

참고) https://docs.spring.io/spring/docs/4.3.x/spring-framework-reference/html/beans.html#beans-c-namespace

 

7. The IoC container

Letting qualifier values select against target bean names, within the type-matching candidates, doesn’t even require a @Qualifier annotation at the injection point. If there is no other resolution indicator (e.g. a qualifier or a primary marker), for a n

docs.spring.io

12) p : property 태그에 해당되는 멤버 필드 지정 속성.

참고) https://docs.spring.io/spring/docs/4.3.x/spring-framework-reference/html/beans.html#beans-p-namespace

 

7. The IoC container

Letting qualifier values select against target bean names, within the type-matching candidates, doesn’t even require a @Qualifier annotation at the injection point. If there is no other resolution indicator (e.g. a qualifier or a primary marker), for a n

docs.spring.io

ex)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

xsi:schemaLocation="http://www.springframework.org/schema/jdbchttp://www.springframework.org/schema/jdbc/spring-jdbc.xsd

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

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

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

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

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

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

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

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

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

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