본문 바로가기

BACK

[SpringBoot JSP] - DB 설정(Intellij)

728x90


1) View -> Database->aws에서 가져와야함

2)일단, application.properties
spring.datasource.url=
spring.datasource.username = 
spring.datasource.password = 
spring.datasource.driver-class-name = 

3) + -> Data Source -> MySQL 에 위에꺼 설정

4) bulid.gradle
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'

728x90