Backend Language/Spring boot(Java)

Intellij Error - invalid source release: 17

chaerlo127 2022. 7. 4. 13:52
728x90

 

 

 

spring security๋ฅผ ๊ณต๋ถ€ํ•˜๊ณ ์ž, spring boot file์„ ์ƒ์„ฑํ•˜์˜€๋Š”๋ฐ build ์‹œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜์˜€๋‹ค.

ํ”„๋กœ์ ํŠธ ๋ฒ„์ „์ด 17์ด์–ด์„œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜์˜€๊ณ , 11๋กœ downgrade๋ฅผ ํ•ด์ฃผ์–ด์„œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜์˜€๋‹ค.

 

# build.gradle file ์ˆ˜์ •

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'

-----------------------------------------------

group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11' #๋ณ€๊ฒฝ

 

 

728x90