부트스트랩 css  /  js 추가하기

 

css는 <head>안에 추가

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">

 

 

js는 body끝나는 지점에 추가

 <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" ></script>
 <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>

 

 

 

 


 

static/css/style.css 추가 하는 법 

th:href="@{/}" /까지가 8080까지고

/css/style.css 는 static폴더 안의 폴더를 넣는다

<link rel="stylesheet" th:href="@{/css/style.css}">  

 

 

반응형
LIST
***************************
APPLICATION FAILED TO START
***************************


Description:


Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.


Reason: Failed to determine a suitable driver class 


DB설정하라는 에러메세지이다.

 

 

 

/src/main/resources/application.properties 파일

#MySQL DB설정
spring.datasource.url=jdbc:mysql://localhost:3306/uglyMarket?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=1234

DB설정해주고  서버 실행하기

 

 

 

 

http://localhost:8080/ 

브라우저를 열면 잘 뜬다.

반응형
LIST

+ Recent posts