์คํ๋ง ์บ์(Spring Cache)์์ฃผ ์ฌ์ฉ๋๋ ๋ฐ์ดํฐ๋ฅผ ์บ์ ๋ฉ๋ชจ๋ฆฌ์ ์ ์ฅํ์ฌ ๋น ๋ฅธ ๊ฒ์์ ๊ฐ๋ฅํ๊ฒ ํจ build.gradleimplementation 'org.springframework.boot:spring-boot-starter-cache Spring Boot Cache ์ด๋
ธํ
์ด์
@EnableCachingSpring Boot Cache๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด ‘์บ์ ํ์ฑํ’๋ฅผ ์ํ ์ด๋
ธํ
์ด์
์ ์๋ฏธํ๋ค@CacheConfig์บ์์ ๋ณด๋ฅผ ‘ํด๋์ค ๋จ์’๋ก ์ฌ์ฉํ๊ณ ๊ด๋ฆฌํ๊ธฐ ์ํ ์ด๋
ธํ
์ด์
์ ์๋ฏธํ๋ค@Cacheable์บ์์ ๋ณด๋ฅผ ๋ฉ๋ชจ๋ฆฌ ์์ ‘์ ์ฅ’ํ๊ฑฐ๋ ‘์กฐํ’ํด์ค๋ ๊ธฐ๋ฅ์ ์ํํ๋ ์ด๋
ธํ
์ด์
์ด๋ค@CachePut์บ์ ์ ๋ณด๋ฅผ ๋ฉ๋ชจ๋ฆฌ์์ ‘์ ์ฅ’ํ๋ฉฐ ์กด์ฌ ์ ๊ฐฑ์ ํ๋ ๊ธฐ๋ฅ์ ์ํํ๋ ์ด๋
ธํ
์ด์
์ด๋ค@CacheEv..
Spring/Spring Boot
ํค๋ ์คํ์ผ ์์ฑ CellStyle headerCellStyle = sheet.getWorkbook().createCellStyle(); headerCellStyle.setFillForegroundColor(IndexedColors.LIGHT_YELLOW.getIndex()); // ๋ฐฐ๊ฒฝ์ ์ค์ headerCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND); Font headerFont = sheet.getWorkbook().createFont(); headerFont.setBold(true); // ํฐํธ ๊ตต๊ธฐ ์ค์ headerCellStyle.setFont(headerFont); Row headerRow = sheet.createRow(0); for..