일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- restapi
- AJAX
- 깃허브
- SQLD
- 배포
- vscode
- JavaScript
- 기업설명회
- github
- 이클립스
- java
- Firebase
- CSS
- Spring Security
- 스파르타코딩클럽
- bootstrap
- jQuery
- error
- HTML
- spring
- 김영한
- 자바
- SQL
- ChatGPT
- 오블완
- Eclipse
- 티스토리챌린지
- 코딩
- myBatis
- 웹개발
- Today
- Total
목록restapi (7)
푸들푸들

@Mapperpublic interface ActorMapper { List> selectActorList(Map paramMap);} SELECT actor_id actorId , first_name firstName , last_name lastName , last_update lastUpdate FROM actor LIMIT #{beginRow}, #{rowPerPage} @Service@Transactionalpublic class ActorService { @Autowired ActorMapper actorMapper; private final int ROW_PER_PAGE = 10; public List> getActorList(Integer currentPage) ..

@Mapperpublic interface DocMapper { int insertDoc(Doc doc); List selectDocList();} INSERT INTO doc( doc_no, doc_sign ) VALUES( #{docNo}, #{docSign} ) SELECT doc_no docNo , doc_sign docSign FROM doc @Service@Transactionalpublic class DocService { @Autowired DocMapper docMapper; public int addDoc(Integer docNo, String sign){ // sign 문잦 중 이미지에 해당하는 문자만 분리 후 이미지로 변환 String filena..

SakilaMapper.java@Mapperpublic interface SakilaMapper { // 1. 카테고리 별 영화 수 List> selectFilmByCategory(); // 2. 러닝타임(length)이 3시간 이상 / 2시간 이상 / 1시간 이상 / 1시간 미만인 영화 수 Map selectFilmByLength(); // 3. 대여료(rental_rate)가 4달러 이상 / 3달러 이상 / 2달러 이상 / 1달러 이상 / 1달러 미만인 영화 수 Map selectFilmByRentalRate(); // 4. 영화 등급(rating) 별 수 List> selectFilmRating(); // 5.가장 많은 배우가 참여한 영화 1~5위 List> selectFilmByActor..

대륙 추가 시중복 검사(대륙 확인) 후중복: alert('중복')중복X: 대륙추가 에 자동 입력대륙 추가 대륙 입력 대륙 확인 대륙 추가 result = Integer continentCnt (컨트롤러)result = 1 = count = 같은 값이 존재 -> 중복 ***@Mapperpublic interface DBMapper { Integer continentCnt(String continentName);}count 값 받기위해 Integer SELECT COUNT(*) FROM continent WHERE continent_name = #{continentName}@Controllerpublic class HomeController { @GetMappin..

답 선택 -> 결과확인 버튼 -> 정답/오답 -> 점수+1, 버튼 비활성화 --> 반복문 점수 : / 15 결과 확인 부분'btnQ\${index+1}'오류: jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: #btnQ${index+1}-> \${index+1}(템플릿 리터럴 문법)이 해석되지 않고 그대로 처리됨 - jQuery--> '#btnQ'+(index+1) : 문자열 연결 연산자 사용 ***@Mapperpublic interface MbtiMapper { String selectMbti(Integer no);} SELECT mbti FROM mbti WHERE no = #{no} @Contro..

계층 구조Mapper@Mapperpublic interface DBMapper { List> continentList(); List> countrytList(int continentId); List> cityList(int countryId);} SELECT continent_id continentId , continent_name continentName FROM continent SELECT country_id countryId , country_name countryName FROM country WHERE continent_id = #{continentId} SELECT city_id cityI..

Rest APIlocalhost/country?currentPage=1--> localhost/country/1@RestControllerpublic class CountryRest { @Autowired CountryService countryService; // localhost/country?currentPage=1 @GetMapping("/country") public List> country(@RequestParam Integer currentPage){ List> list = countryService.getCountryListByPage(currentPage); return list; } // localhost/country2/1 @GetMapping("/country2/{curren..