Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ansi sql 단점
- SQL
- 백준
- JPA
- DP
- oracle ansi sql
- 그리디
- 개발자 면접 준비
- 이중우선순위큐 자바
- CJ DBASE&
- Gradle
- 프로그래머스 이중우선순위큐 자바
- DBASE&
- 면접 필수 질문
- 백트래킹
- oracle ansi
- 디베이스앤 인턴 후기
- 프로그래머스 이중우선순위큐
- BFS
- 이중우선순위큐 java
- 이분탐색
- ansi sql 장점
- 위상정렬
- Spring Boot
- DFS
- 프로그래머스 이중우선순위큐 java
- 디베이스앤
- Java
- 프로그래머스
- IT 면접 준비
Archives
- Today
- Total
쉬운 프로그래밍
Spring Boot , JPA, MySQL 연동 본문
매번 찾아보기 귀찮아서,, 포스팅합니당
1. dependency 추가
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'mysql:mysql-connector-java'
2. application.properties
server.address=localhost
server.port=8080
# thymeleaf 컴파일 안해도 갱신가능하게 하는것
spring.thymeleaf.cache=false
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.database = mysql
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/book_joy?useSSL=false&characterEncoding=UTF-8&serverTimezone=UTC
# schema 이름 : book_joy
spring.datasource.username=root
spring.datasource.password=root
# SQL문 콘솔 출력
spring.jpa.show-sql=true
'Programming > JPA' 카테고리의 다른 글
[JPA] JPA를 통해 업데이트를 할 경우 왜 쿼리를 안날려도 될까? (2) | 2021.03.19 |
---|---|
[JPA] @ManyToMany 관계는 어떻게 처리해야할까? (0) | 2021.02.27 |
[JPA] Entity Status와 Cascade란 무엇일까? (0) | 2021.02.25 |
[JPA] Entity 클래스에서 Enum 타입을 필드로 가지는 경우 (0) | 2021.02.16 |
Comments