1. 프로젝트에 적용하기 위해 아래 주소에서 부트스트랩 템플릿을 다운로드했다.
https://startbootstrap.com/theme/clean-blog
2. 다운로드한 파일을 보면 구조가 아래처럼 되어있다.
3. 내 프로젝트 resources - static 폴더 아래에 assets, css, js 폴더(정적파일들)를 붙여넣기
4. html 파일들을 내 프로젝트에 알맞게 적용하기
- 다운로드한 html 파일 안에 설정 부분을 내 html 파일에 잘 적용해야 한다!
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script th:src="@{/js/scripts.js}"></script>
'🍃 Spring Boot' 카테고리의 다른 글
[Spring Boot] AWS S3를 이용한 이미지 업로드 구현하기 (0) | 2024.10.01 |
---|---|
[Spring Boot] Forward와 Redirect (0) | 2024.06.14 |
[Spring Boot] Spring Security Crypto를 이용한 비밀번호 암호화 (0) | 2024.06.06 |
[Spring boot] Thymeleaf에서 동적 URL 생성하기 (0) | 2024.06.05 |
[Spring Boot] GET과 POST에서의 @RequestParam 동작방식 (0) | 2024.06.04 |