spring boot + Thymeleaf »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù.
ÇÏ°íÀÚÇϴ°ÍÀº °³¹ß½Ã ¼Ò½º ¼öÁ¤À» ÇÏ°í ¹Ù·Î ¹Ý¿µÀÌ µÇ¾úÀ¸¸é Çϴ°ǵ¥
Thymeleaf ÆÄÀÏ ¼öÁ¤½Ã ¹Ù·Î ¹Ý¿µµÇ´Â°ÍÀ» È®ÀÎÇß½À´Ï´Ù.
±×·±µ¥
Thymeleaf ÀÇ .html ÆÄÀÏ¿¡¼ ¾Æ·¡¿Í °°ÀÌ js ÀÎŬ·çµå ÆÄÀÏÀº ¾ÈµÈ´Ù´Â°ÍÀÔ´Ï´Ù.
<script src="/js/aa.js"></script>
spring boot Àç½ÃÀÛ ÇØ¾ß µË´Ï´Ù.
Thymeleaf .html¾È¿¡ ¾Æ·¡¿Í °°ÀÌ »ç¿ëÇÏ¸é ¼öÁ¤½Ã ¹Ù·Î ¹Ý¿µµÇ±ä ÇÕ´Ï´Ù.
<script>
</script>
application.properties ³»¿ëÀÔ´Ï´Ù.
# spring boot Àç½ÃÀÛ ¾øÀÌ »ç¿ë spring.thymeleaf.cache=false spring.thymeleaf.prefix=file:src/main/resources/templates_thymeleaf/ spring.thymeleaf.suffix=.html
Ȥ½Ã ÀÌ·± °æ¿ì ÇØ°áÇغ¸½ÅºÐ °è½Ç±î¿ä ? |
livereload »ç¿ëÇϼ¼¿ä