๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

STUDY/SPRING

Spring ๊ธฐ์ดˆ ๊ด€๊ณ„

๋ฐ˜์‘ํ˜•

A๋Š” B๋ž‘๋งŒ ์นœํ•˜๋ฉด D๋„ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Œ

 


*XML ๋ฌธ์„œ์˜ ๊ตฌ์กฐ๋ฅผ ์ •์˜ํ•˜๋Š” ๋ฐฉ๋ฒ• : DTD์™€ Schema

xml ์„ค์ •ํŒŒ์ผ์€ ์ด ๋‘๊ฐ€์ง€ ๋ฐฉ์‹์„ ๋ชจ๋‘ ์ง€์›ํ•จ

 

* beans dtd

 : ์ง€๊ธˆ xml ์ฝ”๋“œ๋Š” ๋‹ค์–‘ํ•˜๊ฒŒ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ ์ง€๊ธˆ ํ‘œํ˜„ํ•˜๊ณ ์ž ํ•˜๋Š”๊ฑธ ์ง€์ •ํ•ด ์คŒ

   (ํฌ๊ฒŒ ๋ฌถ์–ด์„œ xml์ด์ง€ ๋””ํ…Œ์ผํ•˜๊ฒŒ ๊ตฌ๋ถ„ํ•  ์ˆ˜ ์žˆ์Œ)

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

 

40. 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

 

์ง€๊ธˆ๋ถ€ํ„ฐ ์‚ฌ์šฉํ•˜๋Š” ๊ฑด DTD BEANS ํ˜•ํƒœ๋กœ ํ‘œํ˜„๋œ๋‹ค๋Š” ์„ ์–ธ

 

1.  ctrl+space > beans

๋‹ค์‹œ ctrl + space > bean

*BeanFactory : ๋นˆ์„ ์ƒ์„ฑํ•˜๊ณ  ์˜์กด๊ด€๊ณ„๋ฅผ ์„ค์ •ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๋‹ด๋‹นํ•˜๋Š” ๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ IoC์ปจํ…Œ์ด๋„ˆ

*XmlBeanFactory : ํด๋ž˜์Šค ์ค‘์—์„œ๋„ ๊ฐ€์žฅ ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ์šฉ๋˜๋Š” ํด๋ž˜์Šค

                             : xml์„ค์ • ํŒŒ์ผ์—์„œ ๋นˆ์˜ ์ƒ์„ฑ ๋ฐ ์„ค์ •, ๊ด€๋ฆฌ ์ •๋ณด๋ฅผ ์ทจ๋“ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ

*FileSystemFactory : ํŠน์ • ํŒŒ์ผ๋กœ๋ถ€ํ„ฐ ์ •๋ณด๋ฅผ ์ฝ์–ด์˜ด

 

 

<ํ•œ๋ฒˆ ํ™•์ธํ•ด๋ณด๊ธฐ>

https://www.youtube.com/watch?v=kwS3twdVsko 


 

 


 

 

๋ฐ˜์‘ํ˜•