Notice
Recent Posts
Recent Comments
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
In Total
๊ด€๋ฆฌ ๋ฉ”๋‰ด

A Joyful AI Research Journey๐ŸŒณ๐Ÿ˜Š

230401 ํฌํŠธํด๋ฆฌ์˜ค 2์ผ ์ฐจ) ์Šคํ”„๋ง ๋ถ€ํŠธ๋ฅผ ์“ธ ๋•Œ css, js ํŒŒ์ผ ์‹ค์‹œ๊ฐ„ ๋ฐ˜์˜ํ•˜๊ฒŒ ๋งŒ๋“ค๊ธฐ ๋ณธ๋ฌธ

๐Ÿ’ปBootcamp Self-Study Revisionโœจ/Spring, Spring Boot, Java, SQL

230401 ํฌํŠธํด๋ฆฌ์˜ค 2์ผ ์ฐจ) ์Šคํ”„๋ง ๋ถ€ํŠธ๋ฅผ ์“ธ ๋•Œ css, js ํŒŒ์ผ ์‹ค์‹œ๊ฐ„ ๋ฐ˜์˜ํ•˜๊ฒŒ ๋งŒ๋“ค๊ธฐ

yjyuwisely 2023. 4. 1. 22:31

230401 Sat

ํ•™์›์—์„œ ์Šคํ”„๋ง์œผ๋กœ ํ•  ๋•Œ์™€๋Š” ๋‹ค๋ฅด๊ฒŒ ์ง‘์—์„œ ์Šคํ”„๋ง๋ถ€ํŠธ๋กœ ํ•˜๋‹ˆ๊นŒ
css, js ํŒŒ์ผ์ด ์‹ค์‹œ๊ฐ„ ๋ฐ˜์˜์ด ์•ˆ ๋ผ์„œ ๋ถˆํŽธํ–ˆ๋‹ค.
์ดํด๋ฆฝ์Šค๋ฅผ ์‚ฌ์šฉ์ค‘์ด๊ณ , ํ•ด๊ฒฐ์ฑ…์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. 

pom.xml์˜ <dependencies>์— ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์ถ”๊ฐ€ํ•œ๋‹ค.

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
  <scope>runtime</scope>
</dependency>

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <version>2.0.4.RELEASE</version>
</dependency>

Maven Dependencies์— ์•„๋ž˜ jar ํŒŒ์ผ์ด ๋‹ค์šด๋œ ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.


๊ฒฝ๋กœ๋“ค

src/main/resources ๊ฒฝ๋กœ์˜ application.properties์— ์•„๋ž˜ ์ฝ”๋“œ ์ถ”๊ฐ€ํ•œ๋‹ค.

spring.devtools.livereload.enabled=true
spring.freemarker.cache=false
spring.thymeleaf.cache=false

application.yml๋Š” ์—†์–ด์„œ ๊ทธ๋Ÿฐ๋ฐ ์ง์ ‘ ํŒŒ์ผ ๋งŒ๋“ค๊ณ , ์•„๋ž˜ ์ฝ”๋“œ ์ถ”๊ฐ€ํ•œ๋‹ค.

spring:
  devtools: 
    livereload:
      enabled: true
  freemarker:
    cache: false
  thymeleaf:
    cache: false

์ด์ œ ์Šคํ”„๋ง๋ถ€ํŠธ๋กœ css, js ํŒŒ์ผ ์‹ค์‹œ๊ฐ„ ๋ฐ˜์˜์ด ๊ฐ€๋Šฅํ•˜๋‹ค!


์ฐธ๊ณ : https://suzxc2468.tistory.com/186

 

์Šคํ”„๋ง๋ถ€ํŠธ(SpringBoot)์—์„œ ์žฌ์‹œ์ž‘ ์—†์ด ์ •์ ์†Œ์Šค(html, js, css) ๋ณ€๊ฒฝ ์ ์šฉํ•˜๊ธฐ

๋ณดํ†ต ์›นํ”„๋กœ์ ํŠธ๋ฅผ ์–ด๋”˜๊ฐ€์—์„œ ๋‚ด๋ ค๋ฐ›๋“ , ๊ณผ๊ฑฐ์— ๋ณธ์ธ์ด ์–ด๋–ค ์„ค์ •์„ ํ–ˆ๋“  ๋‹น์—ฐ ์‹œ ํ•˜๊ฒŒ ์ •์ ์†Œ์Šค๋ฅผ ๋ณ€๊ฒฝํ•˜๊ณ  ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์ƒˆ๋กœ๊ณ ์นจํ•˜๋ฉด ๋ฐ˜์˜๋˜์—ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ SpringBoot ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒˆ๋กœ๋งŒ๋“ค๊ณ  ์•„

suzxc2468.tistory.com


https://blog.egstep.com/spring-boot/2017/12/10/springboot-reload/

 

Spring Boot ๊ฐœ๋ฐœ ์‹œ ์ž๋™ ๋ฆฌ๋กœ๋“œ Reload

Introduction ์Šคํ”„๋ง ๋ถ€ํŠธ ๊ฐœ๋ฐœ ์ค‘ ์ฝ”๋“œ ๋ณ€๊ฒฝ ์‹œ, ์ž๋™ ๋ฆฌ๋กœ๋“œ ๋˜๊ฒŒ ํ•˜๋Š” ๋ฐฉ๋ฒ•

blog.egstep.com

 

728x90
๋ฐ˜์‘ํ˜•
Comments