일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 국비지원#국비교육#국비지원자바#국비교육자바#css#HTML#JAVA
- spring#Spring#RequestBody#ResponseBody
- 프로그래밍
- Resource #
- 개발자#it도서#도메인#DDD#ddd
- 항해플러스#항해#항해플러스3기#회고
- Java#java#자바#다오#디티오#브이오#dao#dto#vo
- Java#컴파일러#자바컴파일러#
- Java#JAVA#매개변수
- java
- 개발자도서#개발자책#도메인#DDD#도메인주도개발시작하기#개발스터디#
- Java#정처기#비트연산자#정보처리기사
- 국비지원JAVA#국비교육JAVA#국비지원자바#국비교육자바#JSP#SERVLET#서블릿#
- db#데이터베이스#오라클#sql
- #java#JAVA#프로그래밍#웹개발자
- 자바
- Spring#spring#스프링#스프링프레임워크#스프링의존성주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- #
- 국비지원JAVA#국비지원자바#프로그랭#JSP#국비지원JSP#국비교육JSP#웹개발자#코딩
- 쿼리스트링#쿼리문자열#바인딩
- 국비지원#국비교육
- 국비지원자바#국비교육자바#국비지원java#국비교육java#자바스크립트#프론트엔드
- 항해99 #항해플러스 #주니어개발자 #주니어개발자역량강화 #주니어개발자멘토링 #개발자사이드프로젝트 #코딩부트캠프 #코딩부트캠프후기
- html#HTML#프론트엔드#개발자#코딩#국비지원#국비교육#국비지원프론트엔드#국비지원HTML#국비지원html#국비프론트엔드
- tibero#티베로#이중화#failvover
- 자바#Java#배열예시#연습#기초다지기
- Java#java#메모리영역#클래스로더#가비지컬렉터
- IntelliJ#인텔리제이#인텔리#단축키
- 국비지원JAVA
- Spring#spring#스프링#스프링프레임워크#스프링자동주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- Today
- Total
목록국비지원(국비교육) 웹 개발자 과정 (49)
개린이 개발노트
thymeleaf https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf //thymeleaf implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' // layout thymeleaf implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect' 그래들에 추가 완료 -> 타임리프 문법 package com.example.sb.question; import java.util.List; import org.springframework.stereotype.Controller; ..
devtools라이브러리 Maven Repository: binaryage » devtools (mvnrepository.com) implementation 'org.springframework.boot:spring-boot-devtools:3.0.2' 복사붙여넣기 // ↓ 서버재실행 라이브러리, developmentOnly로 개발할 때 만 사용하게끔, 버전 정보를 뺴면 가장 최적화된 버전으로 맞춰서 잡아줌 developmentOnly 'org.springframework.boot:spring-boot-devtools' 빌드 그래들에 추가한 다음 리프레시를 꼭 해야함! 서버 재실행도 시키는 것이 좋음. https://chrome.google.com/webstore/detail/live-reload/jce..
package com.movie.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.List; import com.movie.vo.MovieVO; //DAO는 매번호출될때마다 객체가 생성되는 것이 아닌 한번 만들어두면 계속 가져다 불러쓸 수 있는 싱글톤으로 만듦 public class MovieDAO { //생성자는 프라이빗으로 (싱글톤의 생성자를 프라이빗으로 한다고해서 안에가 꼭 비워져 있어야 하는 것은 아님) private MovieDAO () { } private static MovieDAO instance = new MovieDAO(); //싱글톤은 ..
--어제이어서-- index페이지에서-> 로그인페이지(login.jsp)에서 회원가입버튼을 클릭-> 회원가입페이지(join.jsp) 페이지 join.jsp 아이디 입력하고 중복확인 버튼 누르면 중복검사 해줌 idCHeckServlert.java에서 구현 여기서 DAO에 confirmID메서드로 중복확인 체크함 중복확인버튼 클릭시 페이지 이동 member.js에서 구현 중복확인 버튼 클릭-> idchechk.jsp 페이지로 이동 회원가입 버튼 JoinServlet.java, DAO에 insertMember 메서드로 구현 회원가입 성공시 로그인페이지로 회원가입 실패시 회원가입 페이지로 이동하게끔 구현 회원페이지 ${loginUser.name}(${loginUser.id})님 환영합니다. 구현해보기 ↑ cre..
데이터베이스 커넥션 풀(DBCP) -> 여러가지 과부화를 방지하기 위해 사용 미리 커넥션들을 연결(할당)해두고 사용자가 요청을 하면 이미 연결해놓은 커넥션을 제공해서 데이터베이스에 접속해서 쓸수있게끔 함 커넥션 풀은 server.xml에서 사용 새로만든 프로젝트를 그냥 실행시켜주고 server.xml 제일 마지막 줄을 수정 위의 방식으로 수정 밑의 사이트로 들어감 https://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html#Oracle_8i,_9i_&_10g Apache Tomcat 9 (9.0.71) - JNDI Datasource How-To JNDI Datasource configuration is covered exten..
위의 회원 가입 페이지에서 한국어를 누르면 한국어로된 회원가입 페이지, english를 누르면 영어로된 회원가입 페이지가 나오도록 만들어보기(아래와 같이) 한글 번들 프로퍼티즈 title = 회원가입 페이지 name = 이름 id = 아이디 pw = 비밀번호 list1 = 자바 list2 = 자바스크립트 list3 = 제이에스피 male = 남 female = 여 btn = 회원가입 영어 번들 프로퍼티즈 title = Sign up Page name = name id = ID pw = Password list1 = Java list2 = JavaScript list3 = JSP male = male female = female btn = Sign up JSP 한국어 English 단순히 2번페이지로 이동..
폼에서 숫자 두개 입력해서 전송 누르면 결과부분에서 두 수의 합이 출력 예전방식+ EL 방식 숫자입력 : 숫자입력 : + = EL 방식 ${param.num1}+${param.num2}=${param.num1+ param.num2} 표현언어(EL)로 내장객체 page request session application 페이지: 요청: 세션: 어플리케이션: 표현언어(EL)로 EL방식 페이지: ${pageScope.name} 요청: ${requestScope.name} 세션:${sessionScope.name} 어플리케이션:${applicationScope.name} * 명시안하고 ${name} 출력하면 출력은 되나 유효범위 중 가종 좁은 것으로 출력 위 같은 경우는 page 가 출력된다. ( page
세션을 이용해서 로그인 구현 아이디, 비밀번호 입력-> 로그인 버튼일 클릭 (데이터베이스에있는)입력한 아이디랑 비밀번호가 맞는지 검사한 후\ true일때 -> 세션 생성-> 로그인성공화면으로 이동 false일때 -> 로그인 실패 페이지(다시 로그인 페이지) 로그인화면 구현 아이디 : 비밀번호 : 메일 로그인 아이디, 비밀번호가 맞는 지 확인 다시 로그인페이지 // response.sendRedirect("loginForm.jsp"); } %> 로그인 성공화면 구현 메일보관함 님 환영합니다. 세션 처리 액션 태그 forward 위의 3개가 전부 다 같은 뜻 param param(setattribute와 비슷한 개념) -> forward액션태그 안쪽에 넣어서 사용 가능 < jsp:forward page ="..
reponse 객체(응답) sendRedirect -> request, response forward-> request, response 유지 나이를 입력-> 20세 이상인지 아닌지 물어보고-? 20세 이상이면 접속 20세 아니면 접속불가 이름 : 나이 : 다음 페이지에 정보를 전달해서 사용 A 페이지 (request 정보저장) -> B 페이지 ( 저장된 정보를 사용) -> C 페이지 ( request 사용X) 유효 범위 page : 해당 하나의 jsp 페이지 ( 그 영역 한페이지) request : 요청받은 페이지 session : 브라우저 application : 하나의 프로젝트
스크립트릿 - - 자바코드 작성하는 곳 - 작성한 위치에서 만들어짐 선언문 - 자바코드를 작성하지만 일반적으로 변수,메서드선언할 때 - 서블릿 클래스 바로 아래 생성이 됨 표현식 변수 출력 (out.print(num)) 표현식을(양쪽이 같음) 이용하면 계산식 출력-> out.print(num1+num2) 표현식을(양쪽이 같음) 이용하면 메서드 호출 - out.print( sum (a,b) ) 표현식을(양쪽이 같음) 이용하면 스크립트릿 주석처리 방법 스크립트릿 안에있는 코드(자바코드) 주석처리 방법 // 이용 -> 자바코드니까 자바코드처럼 주석->컨트롤 + 쉬프트+ c 특정범위 주석-> 컨트롤+쉬프트+c JSP 예제 2개의 input에 숫자를 입력하고 전송버튼을 누르면 두수의 합을 출력해주는 jsp를 만들..