Project열기
- open → spring initailizr에서 만든것을 찾아 open한다.
Spring 실행하기
server.port= 8095
spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
spring.datasource.username = root
spring.datasource.password = 1234
spring.datasource.url = jdbc:mysql://localhost:3306/springdb
![Untitled](https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f1d1b8a3-7511-4863-9b34-01e8117732ff/Untitled.png)
```jsx
server:
port8095
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 1234
url: jdbc:mysql://localhost:3306/springdb
```
server:
port: 포트번호
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/DB명
username: 계정아이디
password: 계정비번
jpa:
database: mysql
database-platform: org.hibernate.dialect.MySQL8Dialect
show-sql: true
hibernate:
format_sql : true
ddl-auto: create #테이블 자동 생성, join(테이블관계)까지
thymeleaf:
cache: false
check-template-location: true
prefix: classpath:/templates/
suffix: .html
enabled: true