[Springboot] log ์ ์šฉ ์‹œ log symbol: variable log ์—๋Ÿฌ

2022. 3. 4. 20:22ใ†Backend/๐ŸŒฟ Spring

์ƒํ™ฉ

@Slf4j ๋กœ๊ทธ ์ ์šฉ์‹œ  log symbol: variable log ์—๋Ÿฌ ๋ฐœ์ƒ

 

์›์ธ๊ณผ ํ•ด๊ฒฐ

annotation processing ๊ด€๋ จ ๋ฌธ์ œ๋กœ ์ถ”์ •. ์–ด๋…ธํ…Œ์ด์…˜ ์ „์ฒ˜๋ฆฌ๊ฐ€ ํ•„์š”ํ•˜๋‹ค๋Š” ์˜๋ฏธ์ด๋ฏ€๋กœ builde.gradle ์˜ dependencies ์—  ์•„๋ž˜์˜ ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•ด์ค€๋‹ค.

dependencies {
	...
	annotationProcessor 'org.projectlombok:lombok:1.18.12'
	...
}