BackEnd : Spring/SpringBoot
[SpringBoot] MariaDB 기본 설정
snoony
2024. 5. 23. 15:05
https://mariadb.com/kb/en/postdownload/mariadb-server-11-3-2/
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
프로젝트 구조