05-21 07:17
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Inheritance
- Entity Set
- Binary Search
- External Scheme
- Operator
- descriptive statistics
- Unity
- Physical Scheme
- systemd
- Polymolphism
- selenium
- BFS
- X.org
- Java
- preprocessing
- 백준
- dbms
- spring
- literal
- python
- 리눅스 마스터 1급
- OOP
- Class
- Reference Type
- X윈도우
- Mac
- 리눅스
- Entity
- 셀레니움
- 자바
Archives
- Today
- Total
목록정적콘텐츠 (1)
Byeol Lo
Spring - static 폴더
Spring은 기본 설정으로 정적컨텐츠를 static폴더에서 찾아서 제공한다. 변하지 않는 html 파일을 넣은 다음 url Path에 Application을 실행시켜주면 된다. //src/main/resources/static/hello.html hihi 해당 파일을 넣고 실행시킨 후에 localhost:8080/hello.html로 들어가면 해당 파일을 그대로 제공해준다. 웹 클라이언트 > 내장 톰캣 서버 > 스프링 컨테이너(hello 관련 컨트롤러를 찾음) > 없으면 resources의 static/hello.html을 찾음 그런 후에 반환을 함.
BackEnd/Spring
2022. 8. 24. 13:06