일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- jsp
- php
- VLAN
- javaee
- cisco packet
- w3school
- 이것이 자바다
- html
- 정보처리기사
- 리눅스
- 네트워크관리사
- 버추얼머신
- 네트워크
- 자바
- jsp연결
- 정처기필기
- Oracle
- sql
- 라우터
- 원형그래프
- autoset
- 참조타입
- ciscopacket
- NCS
- Java
- rinux
- 오라클
- 데이터베이스
- Cisco
- ospf
- Today
- Total
목록SpringBoot (42)
기록해! 정리해!
* page 임포트할때 domain 임 1. Pageable 1) List findByTitleContainingOrWriterContaining(String str1, String str2, Pageable paging); 2) @Test public void selectLike() { Pageable paging = PageRequest.of(0, 3); //(페이지번호, 페이지 사이즈) List li1 =boardRepo.findByTitleContainingOrWriterContaining("J", "닭", paging); for(Board m1 : li1) { System.out.println(m1); } } >> + 정렬 @Test public void selectLike() { Pageabl..
책 260p 1. BoardTest에 값 넣기 insert : BoardTest Junit으로 실행시킴 package com.rubypaper.test; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import com.rubypaper.board.Board; import com.rubypaper.board.BoardRepos..
1. 프로젝트 생성 2. application.properties # 주석 ( none , servlet ) spring.main.web-application-type=servlet server.port=8000 # 오라클 컨넥션 정보 spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver spring.datasource.url =jdbc:oracle:thin:@localhost:1521:xe spring.datasource.username=system spring.datasource.password=1234 ## JPA Setting (create, update) spring.jpa.hibernate.ddl-auto=update spri..
1.pom.xml dependecy에 추가 com.querydsl querydsl-jpa com.querydsl querydsl-apt build에 추가 org.springframework.boot spring-boot-maven-plugin com.mysema.maven apt-maven-plugin process src/main/querydsl com.querydsl.apt.jpa.JPAAnnotationProcessor + Maven Update >> 설정완료. 2. BoardRepository (책 257p) findBoardBy Title Containing = 메소드(엔터티는 생략가능) 변수 Like문 3. BoardService : getBoardList 괄호안에 vo 받아줫음 4. Boar..
getBoardList 타이틀에 링크걸어서 상세보기 만들기 1. BoardService 2. BoardServiceImpl package com.rubypaper.board; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class BoardServiceImpl implements BoardService{ @Autowired private BoardRepository boardRepo; @Override public void insert(B..
1. index.html JPA 시작하기 목록보기 저장하기 2. getBoardList.html 목록보기 (처음으로) SEQ TITLE WRITER cnt 3. BoardController package com.rubypaper.board; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class BoardController { @Autowi..