일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- rpa
- Controller
- git
- Scanner
- Board
- API
- Database
- View
- jsp
- MVC
- 조건문
- jquery
- Uipath
- 이클립스
- spring
- Eclipse
- mysql
- Java
- string
- Oracle
- Array
- SpringBoot
- JDBC
- db
- 배열
- Thymeleaf
- React
- 상속
- 문자열
- html
- Today
- Total
목록SpringBoot (2)
유정잉

1. JPARepository에서 제공되는 메서드를 사용하는 방법2. 메서드 이름으로 쿼리를 생성하는 방법3. 사용자 정의 쿼리 JPQL(Java Persistence Query Language) 3-1 Entity기준으로 만드냐 or 3-2 Table기준으로 만드냐4. 동적 쿼리 처리를 위한 Querydsl - API를 사용(쿼리문이 아니라) [ JPARepository에서 제공되는 메서드를 사용하는 방법 ]public interface CustomerRepository extends JpaRepository { //1. jparepository에서 제공되는 메서드를 사용하는 방법 public List findByAge(int age); //30}public class Custome..

1) start.spring.io로 SpringBoot Project 생성 -> Spring Boot Dev Tools, Spring Web, Lombok, MySQL Driver, Thymeleaf, Psring Data JAP 2) application.properties 파일에 DB 연결 설정 spring.datasource.url=jdbc:mysql://localhost:3306/yujungspring.datasource.username=rootspring.datasource.password=00000000spring.jpa.hibernate.ddl-auto=update 3) controller와 html 파일 생성 -> html에서 Thymeleaf를 통해 데이터 값 출력 -> Th..