env 파일 추가

Untitled

# mysql 관련 설정
mysql.url=url 입력
mysql.username=사용자 계정 입력
mysql.password=비밀번호 입력

#jwt secret
env.jwt.secret=사용할 jwt secret 입력

env 설정 추가

Untitled

package com.ssafy.backend.env;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

@Configuration
@PropertySources(@PropertySource("classpath:properties/env.properties")) //env.propoerties 파일 소스 등록
public class EnvConfig {
}

gitignore 설정

### env ###
!**/properties/
env.properties

git에 올리기