๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

์บ์‹œ2

[JSP/HTML] ERR_CACHE_MISS ์—๋Ÿฌ ๋ฐœ์ƒ ์›นํŽ˜์ด์ง€(jsp, html)์—์„œ ๋’ค๋กœ๊ฐ€๊ธฐ๋ฅผ ํ–ˆ์„ ๋•Œ 'ERR_CACHE_MISS' ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ ์ ์ด ์žˆ๋‹ค ์ด๋Ÿด ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์ด ํ•ด๊ฒฐํ•˜๋ฉด ๋œ๋‹ค! jsp๋‚˜ html๊ณผ ๊ฐ™์€ ์›นํŽ˜์ด์ง€ ์ƒ๋‹จ์— header ์ถ”๊ฐ€ response.setHeader("Cache-Control","no-cache); response.setHeader("Pragma","no-cache"); spring ์„ค์ •์—์„œ ๊ณตํ†ต์œผ๋กœ ์ฒ˜๋ฆฌ ๋ณธ์ธ์€ csrf ์ฒ˜๋ฆฌ ๋•Œ๋ฌธ์— WebSecurityConfigurerAdapter๋ฅผ ์ƒ์†๋ฐ›์€ classs๊ฐ€ ์žˆ์—ˆ๊ณ , configure ๋ฉ”์†Œ๋“œ๋ฅผ ์˜ค๋ฒ„๋ผ์ด๋“œํ•˜์—ฌ csrf ๋ฐฉ์–ด์ฝ”๋“œ๋ฅผ ์„ธํŒ…ํ•˜์˜€๋‹ค. ๊ทธ๋ž˜์„œ ์ด ๋ถ€๋ถ„์— ์บ์‹œ ๋ฐฉ์ง€ ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ์ž‘์„ฑํ•จ! @Override protected void configure(HttpS.. 2021. 12. 1.
[intellij] html, jsp, css, javascript.. Live reload(์‹ค์‹œ๊ฐ„ ๋ฐ˜์˜, ์ƒˆ๋กœ๊ณ ์นจ)์ ์šฉํ•˜๊ธฐ Update Policies ์ •์ฑ…์œผ๋กœ ์ธํ•ด ์—…๋ฐ์ดํŠธ๊ฐ€ ๋ฐ”๋กœ ์ ์šฉ ์•ˆ๋จ.. ํ”„๋กœ์ ํŠธ๋ฅผ ์ˆ˜์ •์‚ฌํ•ญ์„ ํ™•์ธํ•˜๊ธฐ ์œ„ํ•ด ์žฌ์‹œ์ž‘์„ ํ•˜๋Š”๊ฒŒ ๋„ˆ๋ฌด ๋ฒˆ๊ฑฐ๋กœ์›Œ ์„œ์น˜ํ•ด๋ด„.. ์•„๋ž˜์™€ ๊ฐ™์ด ์ ์šฉํ•˜๋ฉด ์žฌ์‹œ์ž‘ํ•˜์ง€ ์•Š์•„๋„ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ฐ˜์˜๋œ๋‹ค! Run > EditConfiguration : Running Application Update Policies ํ•„๋“œ๊ฐ’ ๋ณ€๊ฒฝ On 'Update' action = Update trigger file On frame deactivation = Update resources Dependency ์ถ”๊ฐ€ compile 'org.springframework.boot:spring-boot-devtools'โ€‹ ์„ค์ • ํŒŒ์ผ(application.xml) ์ ์šฉํ•˜๊ธฐ spring.thymeleaf.cache=false.. 2021. 11. 30.
728x90
๋ฐ˜์‘ํ˜•