Skip to content

Latest commit

Β 

History

History
18 lines (15 loc) Β· 716 Bytes

readme.md

File metadata and controls

18 lines (15 loc) Β· 716 Bytes

1.11. Using JSR 330 Standard Annotations(JSR 330 ν‘œμ€€ 주석 μ‚¬μš©)

Spring 3.0λΆ€ν„° Spring은 JSR-330 ν‘œμ€€ 주석 (Dependency Injection)을 μ§€μ›ν•œλ‹€.
μ΄λŸ¬ν•œ 주석은 Spring 주석과 λ™μΌν•œ λ°©μ‹μœΌλ‘œ μŠ€μΊ”λ©λ‹ˆλ‹€. 클래슀 νŒ¨μŠ€μ— κ΄€λ ¨ 항아리(jar)κ°€ μžˆμ–΄μ•Όν•©λ‹ˆλ‹€.


Maven을 μ‚¬μš©ν•˜λŠ” 경우,
javax.inject μ΄μŠˆλŠ” ν‘œμ€€ Maven μ €μž₯μ†Œ (http://repo1.maven.org/maven2/javax/inject/javax.inject/1/)
μ—μ„œ μ‚¬μš©ν•  수 μžˆμŠ΅λ‹ˆλ‹€. pom.xml νŒŒμΌμ— λ‹€μŒ 쒅속성을 μΆ”κ°€ ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

<dependency>
    <groupId>javax.inject</groupId>
    <artifactId>javax.inject</artifactId>
    <version>1</version>
</dependency>