깃클론 : https://github.com/JunTaeINC/grooveo

build.gradle

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
	// 로그인 기능 구현 전 잠깐 주석처리
	// implementation 'org.springframework.boot:spring-boot-starter-security'
	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
	implementation 'org.springframework.boot:spring-boot-starter-validation'
	implementation 'org.springframework.boot:spring-boot-starter-web'
	// implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
	compileOnly 'org.projectlombok:lombok'
	developmentOnly 'org.springframework.boot:spring-boot-devtools'
	annotationProcessor 'org.projectlombok:lombok'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
	testImplementation 'org.springframework.security:spring-security-test'

	runtimeOnly 'com.mysql:mysql-connector-j' // 해당 부분 클론 후 추가
}

application.yml

DB 명 : grooveo__dev

사용자명 : grooveouser

server:
  port: 8080 # 포트번호 8080
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://localhost:3306/grooveo__dev?serverTimezone=Asia/Seoul
    username: grooveouser
    password:
  devtools:
    livereload:        # jps, css 변경 시 새로고침 없이 바로 적용
      enabled: true    # 필요없으면 false
    restart:           # 자동 재시작 사용 여부
      enabled: true
  jpa:
    hibernate:
      ddl-auto: create # DB 테이블 자동생성(엔티티 클래스만 만들면 됨)
    properties:
      hibernate:
        show_sql: true            # 하이버네이트가 DB에 날리는 모든 쿼리(DDL, DML)를 보여준다.
        format_sql: true          # sql 예쁘게 포맷팅
        use_sql_comments: true    # 추가적인 주석 표시
	servlet:
	    multipart:
	      max-file-size: 10MB # 요청한 파일 한 개의 크기
	      max-request-size: 10MB # 요청한 파일 전체의 크기
cloud:
  aws:
    s3:
      bucket:
    stack:
      auto: false
    region:
      static:
    credentials:
      accessKey:
      secretKey:

MySQL 유저와 DB 생성

drop database if exists grooveo__dev;
create database grooveo__dev;
use grooveo__dev;

# 모든 DB의 모든 테이블에 대한 모든 권한을 grooveouser 라는 계정에게 부여한다.
DROP USER grooveouser;
CREATE USER grooveouser@`%` IDENTIFIED BY '';
GRANT ALL PRIVILEGES ON *.* TO grooveouser@`%`;

# 유저 생성이 잘 만들어 졌는지 확인
SELECT *
FROM mysql.user
WHERE `User` = 'grooveouser';

url 확인

# 파일 url 저장 확인
select * from file_info;