본문 바로가기

BackEnd : Spring/SpringBoot

[SpringBoot] MariaDB 기본 설정

https://mariadb.com/kb/en/postdownload/mariadb-server-11-3-2/

 

MariaDB Server 11.3.2

<div class="pdl-cta"> Thank you for downloading. Create your MariaDB account to receive download release notifications, product updates an...

mariadb.com

mariadb 설치하고 HeidiSQL 열기

CREATE DATABASE springboot;

USE springboot;

Dependency 추가해서 프로젝트 다시 생성하기

application.properties

추가

spring.datasource.driverClassName=org.mariadb.jdbc.Driver
spring.datasource.url=jdbc:mariadb://localhost:3307/springboot
spring.datasource.username=root
spring.datasource.password=root1234

spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true

프로젝트 구조