728x90 반응형 MySQL 연동1 [JPA] JPA - MySQL 연동 💡 JPA와 MySQL을 연동하여 사용해보자! 1. 우측 상단 메뉴바의 Database → ‘+’버튼 → DataSource → MySQL → root(pw) 입력하고 OK 2. application.yml 파일에 정의 spring: h2: console: enabled: true jpa: show-sql: true properties: hibernate: format_sql: true generate-ddl: true hibernate: ddl-auto: create-drop datasource: url: jdbc:mysql://localhost username: root password: sql: init: mode: always 3. build.gradle 파일에 코드 추가 implementatio.. 2023. 9. 10. 이전 1 다음 728x90 반응형