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