오류가 발생 ❗❗❗❗
No static resource user/css/common.css 라고 뜬다
개발자 도구(F12) 확인 했더니 css가 안 들어온다...
뭐가 문제일까 했는데
그 이유는...
header.jsp에서 경로 설정에 / 를 빼먹었다...
경로 확인 잘 하기!!
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>myBank</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/common.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="m--flex-container">
<div class="m--container">
<div class="jumbotron text-center m--banner-img" style="margin-bottom: 0">
<h1>my Bank</h1>
<p>마이바이티스를 활용한 스프링 부트 앱 만들어보기</p>
</div>
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<a class="navbar-brand" href="#">HOME</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="#">Sign in</a></li>
<li class="nav-item"><a class="nav-link" href="#">Sign up</a></li>
<li class="nav-item"><a class="nav-link" href="#">회원가입</a></li>
</ul>
</div>
</nav>
<div class="container" style="margin-top: 30px">
<div class="row">
<div class="col-sm-4">
<h2>About Me</h2>
<h5>Photo of me:</h5>
<div class="m--profile"></div>
<p>코린이 개발을 위한 뱅크 앱</p>
<h3>Some Links</h3>
<p>Lorem ipsum dolor sit ame.</p>
<ul class="nav nav-pills flex-column">
<li class="nav-item"><a class="nav-link active" href="#">Account List</a></li>
<li class="nav-item"><a class="nav-link" href="#">Create Account</a></li>
<li class="nav-item"><a class="nav-link" href="#">Account Withdrawal</a></li>
<li class="nav-item"><a class="nav-link" href="#">Account deposit</a></li>
<li class="nav-item"><a class="nav-link" href="#">Account transfer</a></li>
</ul>
<hr class="d-sm-none">
</div>
<!-- end of header.jsp -->
css가 잘 들어온다😜
'error note' 카테고리의 다른 글
[error] Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled... (0) | 2024.10.01 |
---|---|
스프링 부트 Whitelabel Error Page 에러 (0) | 2024.08.05 |
Before start of result set.. 오류 해결(next()) (0) | 2024.07.08 |
[JSP] 예외 발생! -> 예외 처리 (0) | 2024.07.05 |
get_post 부분 문제 해결 (0) | 2024.07.02 |