일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- VLAN
- w3school
- 자바
- jsp
- 원형그래프
- ciscopacket
- 네트워크관리사
- 정보처리기사
- 참조타입
- 라우터
- html
- ospf
- 버추얼머신
- cisco packet
- jsp연결
- Java
- javaee
- autoset
- 네트워크
- rinux
- sql
- 이것이 자바다
- 정처기필기
- 리눅스
- NCS
- 오라클
- 데이터베이스
- Oracle
- php
- Cisco
- Today
- Total
목록전체 글 (282)
기록해! 정리해!

UI없이 이렇게 Test부터 할 수 있음 * insert , update : save * selectAll : findAll * selectOne : findById * delete : deleteById - BoardInsertTest package com.rubypaper; 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; i..

1. 프로젝트 생성 2. application.properties # 주석 ( none , servlet ) spring.main.web-application-type=servlet server.port=8888 # 오라클 컨넥션 정보 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..

BoardController 생성 - 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 { @Autowired private BoardServiceImpl service; @RequestMapping("/getBoardList...

TestBoardRepo1 package com.rubypaper; 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.BoardRepository; @RunWith(SpringRunner.class) @SpringBootT..

프로젝트 지웠다가 다시 만들기. Board package com.rubypaper; import java.util.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import lombok.Data; @Data @Entity //테이블과 매핑하는 역할 (=테이블생성) @Table (name="board1017") public class Board { @Id // P.K설정 (필수) @GeneratedValue //자동증가. (선택) private Long seq; private String title; p..

1. 프로젝트생성 2. application.properties # 주석 ( none , servlet ) spring.main.web-application-type=servlet server.port=8888 # 오라클 컨넥션 정보 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 spring.jpa.hibernate.ddl-auto=update spring.jpa.generate-dd..