Programming/SpringBoot
[SpringBoot] MySQL 연동 - 오류 해결 및 민감 정보 숨기기
[ 1 ] build.gradle에 의존성 추가 dependencies { //implementation 'org.springframework.boot:spring-boot-starter-jdbc' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' runtimeOnly 'com.mysql:mysql-connector-j:8.0.32' } JdbcTemplate를 사용한다면 'spring-boot-starter-jdbc'를, JPA나 Spring Data JPA를 사용한다면 'spring-boot-starter-data-jpa'를 추가한다. ※ 그리고 일반적으로 'mysql:mysql-connector-java'를 추가하는데, 필..